19 #ifndef _MINLIB_BYTE_H_
20 #define _MINLIB_BYTE_H_
27 template<typename IntegerType, class = typename mn::enable_if<mn::is_integral<IntegerType>::value>
::type>
29 return IntegerType(b);
32 template < class IntegerType, class = typename mn::enable_if<mn::is_integral<IntegerType>::value>
::type>
33 inline constexpr
byte to_byte( IntegerType v ) noexcept {
34 return static_cast<byte>( v );
37 inline constexpr
unsigned char to_uchar(
byte b ) noexcept {
38 return to_integer<unsigned char>( b );
41 inline constexpr
unsigned char to_uchar(
int i ) noexcept {
42 return static_cast<unsigned char>( i );
struct mn::memory::detail::ptr_difference type
Definition: mn_allocator_typetraits.hpp:25
constexpr unsigned char to_uchar(byte b) noexcept
Definition: mn_byte.hpp:37
constexpr byte to_byte(IntegerType v) noexcept
Definition: mn_byte.hpp:33
IntegerType to_integer(byte b)
Definition: mn_byte.hpp:28
byte
Definition: mn_def.hpp:88