std::numeric_limits<T>::has_denorm
static const std::float_denorm_style has_denorm; | (until C++11) | |
static constexpr std::float_denorm_style has_denorm; |
(since C++11) (deprecated in C++23) |
The value of std::numeric_limits<T>::has_denorm identifies the floating-point types that support subnormal values.
Standard specializations
T | value of std::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 | usually std::denorm_present |
| double | usually std::denorm_present |
| longdouble | usually std::denorm_present |
See also
|
[static] | returns the smallest positive subnormal value of the given floating-point type (public static member function) |
| indicates floating-point denormalization modes (enum) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/types/numeric_limits/has_denorm