std::numeric_limits::is_bounded
STD::数字[医]限制::IS[医]有界
static const bool is_bounded; | | (until C++11) |
---|---|---|
static constexpr bool is_bounded; | | (since C++11) |
价值std::numeric_limits<T>::is_bounded是true所有算术类型T表示有限值集的。虽然所有基本类型都有界,但这个常量将是false在……的专业化中std::numeric_limits对于库提供的任意精度算术类型。
标准专业化
T | value of std::numeric_limits |
---|---|
/* non-specialized */ | false |
bool | true |
char | true |
signed char | true |
unsigned char | true |
wchar_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 |
另见
is_integer static | identifies integer types (public static member constant) |
---|---|
is_signed static | identifies signed types (public static member constant) |
is_exact static | identifies exact types (public static member constant) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。