types/bits: add bytes_uint_t and bits_uint_t

This commit is contained in:
Danny Robson 2018-01-17 20:09:21 +11:00
parent c7ce526383
commit d323197459

View File

@ -69,5 +69,12 @@ namespace util {
template <typename T>
struct sized_type : public bits_type<sizeof(T) * 8u>
{ };
template <std::size_t Size>
using bits_uint_t = typename bits_type<Size>::uint;
template <std::size_t Size>
using bytes_uint_t = typename bytes_type<Size>::uint;
}
#endif