std::numeric_limits<T>::has_signaling_NaN
From cppreference.com
static const bool has_signaling_NaN; |
(C++11まで) | |
| static constexpr bool has_signaling_NaN; |
(C++11以降) | |
std::numeric_limits<T>::has_signaling_NaN の値は、特殊値 "シグナリング 非数" を表現できるすべての型 T に対して true です。この定数はすべての浮動小数点型に対して意味があり、std::numeric_limits<T>::is_iec559 == true の場合、true であることが保証されます。
[編集] 標準の特殊化
T
|
std::numeric_limits<T>::has_signaling_NaN の値 |
| /* 非特殊化 */ | false |
| bool | false |
| char | false |
| signed char | false |
| unsigned char | false |
| wchar_t | false |
| char8_t (C++20 以降) | false |
| char16_t (C++11 以降) | false |
| char32_t (C++11 以降) | false |
| short | false |
| unsigned short | false |
| int | false |
| unsigned int | false |
| long | false |
| unsigned long | false |
| long long (C++11 以降) | false |
| unsigned long long (C++11 以降) | false |
| float | 通常 true |
| double | 通常 true |
| long double | 通常 true |
[編集] 関連項目
| [static] |
与えられた浮動小数点数型の quiet NaN 値を返す (public static member function) |
| [static] |
特殊な値「正の無限大」を表現できる浮動小数点数型を識別する (public static member constant) |
| [static] |
特殊な値「quiet not-a-number」(NaN) を表現できる浮動小数点数型を識別する (public static member constant) |