首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::numeric_limits::is_bounded

static const bool is_bounded;

(until C++11)

static constexpr bool is_bounded;

(since C++11)

价值std::numeric_limits<T>::is_boundedtrue所有算术类型T表示有限值集的。虽然所有基本类型都有界,但这个常量将是false在……的专业化中std::numeric_limits对于库提供的任意精度算术类型。

标准专业化

T

value of std::numeric_limits<T>::is_bounded

/* 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)

代码语言:txt
复制
 © cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券