std::numeric_limits<T>::has_denorm
< cpp | types | numeric limits
|
static const std::float_denorm_style has_denorm;
|
(C++11 前) | |
|
static constexpr std::float_denorm_style has_denorm;
|
(C++11 起) (C++23 中弃用) |
|
std::numeric_limits<T>::has_denorm 的值鉴别浮点类型是否支持非正规值。
标准特化
T |
std::numeric_limits<T>::has_denorm 的值 |
| /* 未特化 */ | 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 (C++20 起) | std::denorm_absent |
| char16_t (C++11 起) | std::denorm_absent |
| char32_t (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 (C++11 起) | std::denorm_absent |
| unsigned long long (C++11 起) | std::denorm_absent |
| float | 通常是 std::denorm_present |
| double | 通常是 std::denorm_present |
| long double | 通常是 std::denorm_present |
参阅
|
[静态]
|
返回给定浮点类型的最小正非正规值 (公开静态成员函数) |
| 指示浮点非规格化模式 (枚举) |