std::numeric_limits<T>:: is_iec559
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
| Static constants | ||||
|
numeric_limits::is_iec559
|
||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
static
const
bool
is_iec559
;
|
(C++11 前) | |
|
static
constexpr
bool
is_iec559
;
|
(C++11 起) | |
对于所有满足 IEC 559 (
IEEE 754
) 标准要求的浮点类型
T
,
std::
numeric_limits
<
T
>
::
is_iec559
的值为
true
。若
std::
numeric_limits
<
T
>
::
is_iec559
为
true
,则
std::
numeric_limits
<
T
>
::
has_infinity
、
std::
numeric_limits
<
T
>
::
has_quiet_NaN
和
std::
numeric_limits
<
T
>
::
has_signaling_NaN
的值也均为
true
。
标准特化
T
|
std:: numeric_limits < T > :: is_iec559 的值 |
| /* 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]
|
标识可以表示特殊值“正无穷大”的浮点类型
(公开静态成员常量) |
|
[static]
|
标识可以表示特殊值“静默非数”(NaN)的浮点类型
(公开静态成员常量) |
|
[static]
|
标识可以表示特殊值“信号非数”(NaN)的浮点类型
(公开静态成员常量) |