std::numeric_limits<T>::has_denorm
來自 cppreference.com
| 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 的值標識支援非規範化值(subnormal values)的浮點型別。
[編輯] 標準特化
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 |
[編輯] 參閱
| [靜態] |
返回給定浮點型別的最小正非正規化值 (public static member function) |
| 指示浮點非正規化模式 (enum) |