std::numeric_limits<T>::is_bounded
From cppreference.com
static const bool is_bounded; |
(C++11まで) | |
| static constexpr bool is_bounded; |
(C++11以降) | |
T の `std::numeric_limits<T>::is_bounded` の値は、有限集合の値を表すすべての算術型において true です。すべての基本型は有界ですが、ライブラリ提供の任意精度算術型の `std::numeric_limits` の特殊化では、この定数は false になります。
[編集] 標準特殊化
T
|
`std::numeric_limits<T>::is_bounded` の値 |
| /* 非特殊化 */ | 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) |