Symphony Of Empires
std Namespace Reference

Classes

struct  hash< ProvinceId >
 
struct  equal_to< ProvinceId >
 
struct  hash< EntityId< T > >
 
struct  equal_to< EntityId< T > >
 

Enumerations

enum class  endian { little = __ORDER_LITTLE_ENDIAN__ , big = __ORDER_BIG_ENDIAN__ , native = __BYTE_ORDER__ }
 

Functions

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< From > &&std::is_trivially_copyable_v< To >, To > bit_cast (const From &src) noexcept
 
template<typename T >
constexpr T byteswap (T value) noexcept
 

Enumeration Type Documentation

◆ endian

enum std::endian
strong
Enumerator
little 
big 
native 

Definition at line 83 of file utils.hpp.

Function Documentation

◆ bit_cast()

template<class To , class From >
std::enable_if_t<sizeof(To) == sizeof(From) && std::is_trivially_copyable_v<From> && std::is_trivially_copyable_v<To>, To> std::bit_cast ( const From &  src)
noexcept

Definition at line 38 of file utils.hpp.

Here is the caller graph for this function:

◆ byteswap()

template<typename T >
constexpr T std::byteswap ( value)
constexprnoexcept

Definition at line 46 of file utils.hpp.

Here is the call graph for this function: