Numeric traits template.
More...
#include <type_traits.hh>
Inherited by integer_traits< char >.
|
|
static constexpr bool | is_numeric = false |
| |
|
static constexpr bool | is_integral = false |
| |
template<typename T>
class integer_traits< T >
Numeric traits template.
The integer_traits template defines constants and type definitions related to integers. Where T is an integer, integer_traits<T> defines:
- const T const_min
- The minimum value defined for the type.
- const T const_max
- The maximum value available for the type.
- const bool is_numeric
- True.
- const bool is_integral
- True.
- const bool is_signed
- True iff the type is signed.
- signed_type (typedef)
- Signed version of the type.
- unsigned_type (typedef)
- Unsigned version of the type.
If T is not an integer, integer_traits<T> defines:
- constexpr bool is_numeric
- False.
- constexpr bool is_integral
- False.
The documentation for this class was generated from the following file: