std::numeric_limits<T>::has_signaling_NaN
ja.cppreference.net より
static const bool has_signaling_NaN;
|
(C++11未満) | |
static constexpr bool has_signaling_NaN;
|
(C++11以上) | |
特殊値「シグナル伝達std::numeric_limits<T>::has_signaling_NaN非数true」を表現できるすべての型Tに対し、の値はtrueとなります。この定数はすべての浮動小数点型に対して意味を持ち、std::numeric_limits<T>::is_iec559 == trueの場合は
標準特殊化
T
|
std:: numeric_limits < T > :: has_signaling_NaN の値 |
| /* non-specialized */ | 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) |