std::numeric_limits<T>::is_bounded
提供: cppreference.com
< cpp | types | numeric limits
static const bool is_bounded; |
(C++11未満) | |
static constexpr bool is_bounded; |
(C++11以上) | |
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 | true |
char16_t | true |
char32_t | true |
short | true |
unsigned short | true |
int | true |
unsigned int | true |
long | true |
unsigned long | true |
long long | true |
unsigned long long | true |
float | true |
double | true |
long double | true |
[編集] 関連項目
[静的] |
整数型を識別します (パブリック静的メンバ定数) |
[静的] |
符号付きの型を識別します (パブリック静的メンバ定数) |
[静的] |
正確な型を識別します (パブリック静的メンバ定数) |