std::numeric_limits<T>::is_bounded
cppreference.net에서
static const bool is_bounded;
|
(C++11까지) | |
static constexpr bool is_bounded;
|
(C++11부터) | |
std::numeric_limits<T>::is_bounded의 값은 유한한 값 집합을 나타내는 모든 산술 타입 true 에 대해 T 입니다. 모든 기본 타입은 유계(bounded)이지만, 라이브러리에서 제공하는 임의 정밀도 산술 타입에 대한 falsestd::numeric_limits의 특수화에서는 이 상수가 일 수 있습니다.
표준 특수화
T
|
std:: numeric_limits < T > :: is_bounded 의 값 |
| /* 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 | true |
| double | true |
| long double | true |
참고 항목
|
[static]
|
정수 타입을 식별함
(public static member constant) |
|
[static]
|
부호 있는 타입을 식별함
(public static member constant) |
|
[static]
|
정확한 타입을 식별함
(public static member constant) |