Namespaces
Variants

std::numeric_limits<T>:: is_exact

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

std:: numeric_limits < T > :: is_exact 의 값은 정확한 표현을 사용하는 모든 산술 타입 T 에 대해 true 입니다.

표준 특수화

T std:: numeric_limits < T > :: is_exact 의 값
/* non-specialized */ false
bool true
char true
signed char true
unsigned char true
wchar_t true
char8_t (C++20부터) true
char16_t (C++11부터) true
char32_t (C++11부터) true
short true
unsigned short true
int true
unsigned int true
long true
unsigned long true
long long (C++11부터) true
unsigned long long (C++11부터) true
float false
double false
long double false

참고 사항

모든 기본 타입 T 에 대해 std:: numeric_limits < T > :: is_exact == true 인 경우가 정수 타입이지만, 라이브러리는 정수가 아닌 정확한 타입을 정의할 수 있습니다. 예를 들어 분수를 표현하는 유리수 연산 타입 등이 있습니다.

참고 항목

[static]
정수형 타입을 식별함
(public static member constant)
[static]
부호 있는 타입을 식별함
(public static member constant)
[static]
유한한 값들의 집합을 나타내는 타입을 식별함
(public static member constant)