Namespaces
Variants
Views
Actions

std::numeric_limits<T>::has_denorm

From cppreference.com
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (C++20)
Dynamic memory management
Program utilities
Coroutine support (C++20)
Variadic functions
Debugging support
(C++26)
Three-way comparison
(C++20)
(C++20)(C++20)(C++20)
(C++20)(C++20)(C++20)
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)

 
 
 
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.

[edit] Standard specializations

T value of std::numeric_limits<T>::has_denorm
/* non-specialized */ std::denorm_absent
bool std::denorm_absent
char std::denorm_absent
signed char std::denorm_absent
unsigned char 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
unsigned short std::denorm_absent
int std::denorm_absent
unsigned int std::denorm_absent
long std::denorm_absent
unsigned long std::denorm_absent
long long (since C++11) std::denorm_absent
unsigned long long (since C++11) std::denorm_absent
float usually std::denorm_present
double usually std::denorm_present
long double usually std::denorm_present

[edit] See also

[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]