Skyward boardcore
|
Functions | |
template<class T > | |
auto | add_sat (T x, T y) noexcept -> typename std::enable_if_t< std::is_integral< T >::value, T > |
Computes the saturating addition x + y for integral types. | |
template<typename To , typename From > | |
auto | bit_cast (const From &src) noexcept -> typename std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable< To >::value &&std::is_trivially_copyable< From >::value, To > |
Obtain a value of type To by reinterpreting the object representation of From. | |
|
noexcept |
|
noexcept |