A set of templated compile time constants that mirror some of std::numeric_limits funtionality.
◆ etl::integral_limits
struct etl::integral_limits |
template<typename T>
struct etl::integral_limits< T >
◆ etl::integral_limits< void >
struct etl::integral_limits< void > |
Static Public Attributes |
static const int | min = 0 |
|
static const int | max = 0 |
|
static const int | bits = 0 |
|
static const bool | is_signed = false |
|
◆ etl::integral_limits< signed char >
struct etl::integral_limits< signed char > |
Static Public Attributes |
static const signed char | min = SCHAR_MIN |
|
static const signed char | max = SCHAR_MAX |
|
static const int | bits = CHAR_BIT |
|
static const bool | is_signed = etl::is_signed<signed char>::value |
|
◆ etl::integral_limits< unsigned char >
struct etl::integral_limits< unsigned char > |
Static Public Attributes |
static const unsigned char | min = 0 |
|
static const unsigned char | max = UCHAR_MAX |
|
static const int | bits = CHAR_BIT |
|
static const bool | is_signed = etl::is_signed<unsigned char>::value |
|
◆ etl::integral_limits< char >
struct etl::integral_limits< char > |
Static Public Attributes |
static const char | min = (etl::is_signed<char>::value) ? SCHAR_MIN : 0 |
|
static const char | max = (etl::is_signed<char>::value) ? SCHAR_MAX : char(UCHAR_MAX) |
|
static const int | bits = CHAR_BIT |
|
static const bool | is_signed = etl::is_signed<char>::value |
|
◆ etl::integral_limits< short >
struct etl::integral_limits< short > |
Static Public Attributes |
static const short | min = SHRT_MIN |
|
static const short | max = SHRT_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(short) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<short>::value |
|
◆ etl::integral_limits< unsigned short >
struct etl::integral_limits< unsigned short > |
Static Public Attributes |
static const unsigned short | min = 0 |
|
static const unsigned short | max = USHRT_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(unsigned short) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<unsigned short>::value |
|
◆ etl::integral_limits< int >
struct etl::integral_limits< int > |
Static Public Attributes |
static const int | min = INT_MIN |
|
static const int | max = INT_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(int) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<int>::value |
|
◆ etl::integral_limits< unsigned int >
struct etl::integral_limits< unsigned int > |
Static Public Attributes |
static const unsigned int | min = 0 |
|
static const unsigned int | max = UINT_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(unsigned int) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<unsigned int>::value |
|
◆ etl::integral_limits< long >
struct etl::integral_limits< long > |
Static Public Attributes |
static const long | min = LONG_MIN |
|
static const long | max = LONG_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(long) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<long>::value |
|
◆ etl::integral_limits< unsigned long >
struct etl::integral_limits< unsigned long > |
Static Public Attributes |
static const unsigned long | min = 0 |
|
static const unsigned long | max = ULONG_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(unsigned long) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<unsigned long>::value |
|
◆ etl::integral_limits< long long >
struct etl::integral_limits< long long > |
Static Public Attributes |
static const long long | min = LLONG_MIN |
|
static const long long | max = LLONG_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(long long) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<long long>::value |
|
◆ etl::integral_limits< unsigned long long >
struct etl::integral_limits< unsigned long long > |
Static Public Attributes |
static const unsigned long long | min = 0 |
|
static const unsigned long long | max = ULLONG_MAX |
|
static const int | bits = CHAR_BIT * (sizeof(unsigned long long) / sizeof(char)) |
|
static const bool | is_signed = etl::is_signed<unsigned long long>::value |
|