Namespaces
Variants

std::numeric_limits<T>:: is_iec559

From cppreference.net
Utilities library
static const bool is_iec559 ;
(C++11 이전)
static constexpr bool is_iec559 ;
(C++11 이후)

std:: numeric_limits < T > :: is_iec559 의 값은 IEC 559 ( IEEE 754 ) 표준 요구사항을 충족하는 모든 부동소수점 타입 T 에 대해 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

참고 항목

부동 소수점 타입이 특수 값 "양의 무한대"를 표현할 수 있는지 식별합니다
(public static member constant)
부동 소수점 타입이 특수 값 "조용한 NaN(Not-a-Number)"을 표현할 수 있는지 식별합니다
(public static member constant)
부동 소수점 타입이 특수 값 "시그널링 NaN(Not-a-Number)"을 표현할 수 있는지 식별합니다
(public static member constant)