|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types(C++11) | |||||||||||||||||||||
| Fixed width floating-point types(C++23) | |||||||||||||||||||||
| |||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
| |||||||||||||||||||||
| Static constants | ||||
numeric_limits::has_denorm | ||||
(C++11) | ||||
| Static member functions | ||||
(C++11) | ||||
| Helper types | ||||
staticconststd::float_denorm_style has_denorm; | (until C++11) | |
staticconstexprstd::float_denorm_style has_denorm; | (since C++11) (deprecated in C++23) | |
The value ofstd::numeric_limits<T>::has_denorm identifies the floating-point types that supportsubnormal values.
T | value ofstd::numeric_limits<T>::has_denorm |
| /* non-specialized */ | std::denorm_absent |
| bool | std::denorm_absent |
| char | std::denorm_absent |
| signedchar | std::denorm_absent |
| unsignedchar | std::denorm_absent |
| wchar_t | std::denorm_absent |
| char8_t(since C++20) | std::denorm_absent |
| char16_t(since C++11) | std::denorm_absent |
| char32_t(since C++11) | std::denorm_absent |
| short | std::denorm_absent |
| unsignedshort | std::denorm_absent |
| int | std::denorm_absent |
| unsignedint | std::denorm_absent |
| long | std::denorm_absent |
| unsignedlong | std::denorm_absent |
| longlong(since C++11) | std::denorm_absent |
| unsignedlonglong(since C++11) | std::denorm_absent |
| float | usuallystd::denorm_present |
| double | usuallystd::denorm_present |
| longdouble | usuallystd::denorm_present |
[static] | returns the smallest positive subnormal value of the given floating-point type (public static member function)[edit] |
| indicates floating-point denormalization modes (enum)[edit] |