std::numeric_limits<T>::is_bounded
ja.cppreference.net より
static const bool is_bounded;
|
(C++11未満) | |
static constexpr bool is_bounded;
|
(C++11以上) | |
std::numeric_limits<T>::is_boundedの値は、有限な値の集合を表すすべての算術型trueTに対してfalseとなります。すべての基本型は有界ですが、ライブラリ提供の任意精度算術型に対する std::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) |