在线文档教程
C++
应用 | Utilities

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对于库提供的任意精度算术类型。

标准专业化

Tvalue of std::numeric_limits::is_bounded
/* non-specialized */false
booltrue
chartrue
signed chartrue
unsigned chartrue
wchar_ttrue
char16_ttrue
char32_ttrue
shorttrue
unsigned shorttrue
inttrue
unsigned inttrue
longtrue
unsigned longtrue
long longtrue
unsigned long longtrue
floattrue
doubletrue
long doubletrue

另见

is_integer staticidentifies integer types (public static member constant)
is_signed staticidentifies signed types (public static member constant)
is_exact staticidentifies exact types (public static member constant)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/type/NUMERIC[医]限制/IS[医]有界