|
fennec
|
Helper for getting traits of a numeric type. More...
#include <limits.h>
| TypeT | Numeric types, may be overloaded for custom types |
Static Public Attributes | |
| static constexpr bool | is_specialized = false |
| Check if the template is specialized for TypeT. | |
| static constexpr bool | is_signed = false |
| Check if TypeT is signed. | |
| static constexpr bool | is_integer = false |
| Check if TypeT is of an integral type. | |
| static constexpr bool | is_exact = false |
| Check if TypeT is exact in its precision. | |
| static constexpr bool | has_infinity = false |
| Check if TypeT can hold a value representing infinity. | |
| static constexpr bool | has_quiet_nan = false |
| Check if TypeT can hold a non-signaling nan. | |
| static constexpr bool | has_signaling_nan = false |
| Check if TypeT can hold a signaling nan. | |
| static constexpr bool | has_denorm = false |
| Check if TypeT denormalizes. | |
| static constexpr bool | has_denorm_loss = false |
| Check if TypeT has precision loss when denormalized. | |
| static constexpr bool | is_iec559 = false |
| Check if a TypeT representing a float is IEC 559 or IEEE 754. | |
| static constexpr bool | is_bounded = false |
| Check if TypeT represents a finite set of values. | |
| static constexpr bool | is_modulo = false |
| Check if TypeT can handle modulo arithmetic. | |
| static constexpr bool | tinyness_before = false |
| Check if TypeT checks for tinyness before rounding. | |
| static constexpr bool | traps = false |
| Check if TypeT can cause operations to trap. | |
| static constexpr int | radix = 0 |
| Get the base representation of the type. | |
| static constexpr int | digits = 0 |
| Get the number of radix digits TypeT represents. | |
| static constexpr int | digits10 = 0 |
| Get the number of decimal digits TypeT represents. | |
| static constexpr int | max_digits10 = 0 |
| Get the maximum number of decimal digits TypeT represents. | |
| static constexpr int | min_exponent = 0 |
| Get the minimum number of radix digits that represent the exponent of TypeT. | |
| static constexpr int | min_exponent10 = 0 |
| Get the minimum number of decimal digits that represent the exponent of TypeT. | |
| static constexpr int | max_exponent = 0 |
| Get the maximum number of radix digits that represent the exponent of TypeT. | |
| static constexpr int | max_exponent10 = 0 |
| Get the maximum number of decimal digits that represent the exponent of TypeT. | |
| static constexpr float_round_style | rounding_style = round_indeterminate |
| The rounding style of TypeT. | |