20 #ifndef ANTKEEPER_MATH_HASH_MAKE_UINT_HPP
21 #define ANTKEEPER_MATH_HASH_MAKE_UINT_HPP
24 #include <type_traits>
35 static_assert(std::is_integral<T>::value);
38 typedef typename std::make_unsigned<T>::type
type;
45 static_assert(
sizeof(
float) ==
sizeof(std::uint32_t));
48 typedef std::uint32_t
type;
55 static_assert(
sizeof(
double) ==
sizeof(std::uint64_t));
58 typedef std::uint64_t
type;
typename make_uint< T >::type make_uint_t
Helper type for make_uint.
Mathematical functions and data types.
std::uint64_t type
Unsigned integer type of equivalent size to double.
std::uint32_t type
Unsigned integer type of equivalent size to float.
Provides an unsigned integer type of equivalent size to type T.
std::make_unsigned< T >::type type
Unsigned integer type of equivalent size to type T.