std::numeric_limits<T>:: has_signaling_NaN
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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::has_signaling_NaN
|
||||
|
(C++11)
|
||||
| Static member functions | ||||
|
(C++11)
|
||||
| Helper types | ||||
|
static
const
bool
has_signaling_NaN
;
|
(C++11 이전) | |
|
static
constexpr
bool
has_signaling_NaN
;
|
(C++11 이후) | |
std::
numeric_limits
<
T
>
::
has_signaling_NaN
의 값은 특수 값 "Signaling
Not-A-Number
"를 표현할 수 있는 모든 타입
T
에 대해
true
입니다. 이 상수는 모든 부동 소수점 타입에 의미가 있으며,
std::
numeric_limits
<
T
>
::
is_iec559
==
true
인 경우 반드시
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) |