How-To use extended type traits
The library provides a bunch of type traits beyond what exists in the standard library that may or may not be useful to you.
Using size traits
1#include <liberate/types/type_traits.h>
2
3using namespace liberate::types;
4
5assert(is_8bit_type<char>::value);
6assert(is_16bit_type<uint16_t>::value);
7assert(is_32bit_type<uint32_t>::value);
8assert(is_64bit_type<uint64_t>::value);
9assert(is_128bit_type<uint128_t>::value);