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

cstdint

这个标头最初在C标准库中作为<stdint.h>...

此标头是类型支撑图书馆,提供固定宽度整数类型也是其中的一部分C数字限制接口...

类型

在标头中定义<cstdint>

*。

INT 8[医]Tint 16[医]Tint 32[医]Tint 64[医]t%28可选%29有符号整数类型,宽度分别为8、16、32和64位,没有填充位,只有在实现直接支持类型%29%28的情况下才提供负值%28的2%27 s补码。

INT[医]快8[医]淡色[医]扣件16[医]淡色[医]扣件32[医]淡色[医]快64[医]宽度至少为8、16、32和64位的最快有符号整数类型,分别为%28

INT[医]最少8[医]淡色[医]至少16[医]淡色[医]至少32[医]淡色[医]至少64[医]最小有符号整数类型,宽度分别为8、16、32和64位,分别为28位、28位和29位。

最大[医]T最大宽度整数类型%28-胡枝子f%29

intptr[医]T%28可选%29整数类型能够保持指针%28

温特8[医]tuint 16[医]tuint 32[医]tuint 64[医]t%28可选的%29无符号整数类型,宽度分别为8、16、32和64位,只有在实现直接支持类型%29%28

温特[医]快8[医]图林[医]扣件16[医]图林[医]扣件32[医]图林[医]快64[医]宽度至少为8、16、32和64位的最快无符号整数类型

温特[医]最少8[医]图林[医]至少16[医]图林[医]至少32[医]图林[医]至少64[医]最小无符号整数类型,宽度分别为8、16、32和64位,分别为28位、28位和29位。

温特马克斯[医]T最大宽度无符号整数类型%28

尤因普特[医]t%28可选%29无符号整数类型,能够保存指针%28

在标头中定义<cstdint>

*。

有符号整数:最小值

INT 8[医]MININT 16[医]MININT 32[医]MININT 64[医]int 8类型对象的最小最小值[医]T,int 16[医]T,int 32[医]t,int 64[医]t%28宏常数%29

INT[医]FAST 8[医]MININT[医]FAST 16[医]MININT[医]FAST 32[医]MININT[医]FAST 64[医]int类型对象的最小最小值[医]快8[医]t,int[医]扣件16[医]t,int[医]扣件32[医]t,int[医]快64[医]t%28宏常数%29

INT[医]LEAST 8[医]MININT[医]LEAST 16[医]MININT[医]LEAST 32[医]MININT[医]LEAST 64[医]int类型对象的最小最小值[医]最少8[医]t,int[医]至少16[医]t,int[医]至少32[医]t,int[医]至少64[医]t%28宏常数%29

INTPTR[医]intptr类型对象的最小最小值[医]t%28宏常数%29

INTMAX[医]intmax类型对象的最小最小值[医]t%28宏常数%29

有符号整数:最大值

INT 8[医]MAXINT 16[医]MAXINT 32[医]MAXINT 64[医]int 8类型对象的最大值[医]T,int 16[医]T,int 32[医]t,int 64[医]t%28宏常数%29

INT[医]FAST 8[医]马辛特[医]FAST 16[医]马辛特[医]FAST 32[医]马辛特[医]FAST 64[医]int类型对象的最大值[医]快8[医]t,int[医]扣件16[医]t,int[医]扣件32[医]t,int[医]快64[医]t%28宏常数%29

INT[医]LEAST 8[医]马辛特[医]LEAST 16[医]马辛特[医]LEAST 32[医]马辛特[医]LEAST 64[医]int类型对象的最大值[医]最少8[医]t,int[医]至少16[医]t,int[医]至少32[医]t,int[医]至少64[医]t%28宏常数%29

INTPTR[医]intptr类型对象的最大值[医]t%28宏常数%29

INTMAX[医]intmax类型对象的最大值[医]t%28宏常数%29

无符号整数:最大值

UINT 8[医]MAXUINT 16[医]MAXUINT 32[医]MAXUINT 64[医]uint类型对象的最大值8[医]T,uint 16[医]T,uint 32[医]T,Uint 64[医]t%28宏常数%29

UINT[医]FAST 8[医]马克斯[医]FAST 16[医]马克斯[医]FAST 32[医]马克斯[医]FAST 64[医]uint类型对象的最大值[医]快8[医]T,Uint[医]扣件16[医]T,Uint[医]扣件32[医]T,Uint[医]快64[医]t%28宏常数%29

UINT[医]LEAST 8[医]马克斯[医]LEAST 16[医]马克斯[医]LEAST 32[医]马克斯[医]LEAST 64[医]uint类型对象的最大值[医]最少8[医]T,Uint[医]至少16[医]T,Uint[医]至少32[医]T,Uint[医]至少64[医]t%28宏常数%29

UINTPTR[医]uintptr类型对象的最大值[医]t%28宏常数%29

UINTMAX[医]uintmax类型对象的最大值[医]t%28宏常数%29

其他整数类型的限制

PTRDIFF[医]最小%28C++11%29 STD::ptrdiff对象的最小值[医]T型%28宏常数%29

PTRDIFF[医]最大值%28C++11%29 STD::ptrdiff对象的最大值[医]T型%28宏常数%29

大小[医]最大值28C++11%29 STD对象的最大值::大小[医]T型%28宏常数%29

西格[医]原子[医]最小%28C++11%29 STD::SIG对象的最小值[医]原子[医]T型%28宏常数%29

西格[医]原子[医]最大值%28C++11%29 STD::SIG对象的最大值[医]原子[医]T型%28宏常数%29

WCHAR[医]最小%28C++11%29 Wchar对象的最小值[医]T型%28宏常数%29

WCHAR[医]最大%28C++11%29 Wchar对象的最大值[医]T型%28宏常数%29

温特[医]最小%28C++11%29 STD::Wint对象的最小值[医]T型%28宏常数%29

温特[医]最大值%28C++11%29 STD::Wint对象的最大值[医]T型%28宏常数%29

用于整数常量的函数宏

INT 8[医]CINT 16[医]CINT 32[医]CINT 64[医]C扩展为整数常量表达式,其值由其参数和int类型指定。[医]最少8[医]t,int[医]至少16[医]t,int[医]至少32[医]t,int[医]至少64[医]t分别为%28函数宏%29

INTMAX[医]C扩展为整数常量表达式,其值由其参数和intmax类型指定。[医]T%28函数宏%29

UINT 8[医]CUINT 16[医]CUINT 32[医]CUINT 64[医]C扩展为整数常量表达式,其值由其参数和uint类型指定。[医]最少8[医]T,Uint[医]至少16[医]T,Uint[医]至少32[医]T,Uint[医]至少64[医]t分别为%28函数宏%29

UINTMAX[医]C扩展为整数常量表达式,其值由其参数和uintmax类型指定。[医]T%28函数宏%29

简介

二次

代码语言:javascript
复制
namespace std {
  using int8_t = /*signed integer type*/ ; // optional
  using int16_t = /*signed integer type*/ ; // optional
  using int32_t = /*signed integer type*/ ; // optional
  using int64_t = /*signed integer type*/ ; // optional
  using int_fast8_t = /*signed integer type*/ ;
  using int_fast16_t = /*signed integer type*/ ;
  using int_fast32_t = /*signed integer type*/ ;
  using int_fast64_t = /*signed integer type*/ ;
  using int_least8_t = /*signed integer type*/ ;
  using int_least16_t = /*signed integer type*/ ;
  using int_least32_t = /*signed integer type*/ ;
  using int_least64_t = /*signed integer type*/ ;
  using intmax_t = /*signed integer type*/ ;
  using intptr_t = /*signed integer type*/ ; // optional
  using uint8_t = /*unsigned integer type*/ ; // optional
  using uint16_t = /*unsigned integer type*/ ; // optional
  using uint32_t = /*unsigned integer type*/ ; // optional
  using uint64_t = /*unsigned integer type*/ ; // optional
  using uint_fast8_t = /*unsigned integer type*/ ;
  using uint_fast16_t = /*unsigned integer type*/ ;
  using uint_fast32_t = /*unsigned integer type*/ ;
  using uint_fast64_t = /*unsigned integer type*/ ;
  using uint_least8_t = /*unsigned integer type*/ ;
  using uint_least16_t = /*unsigned integer type*/ ;
  using uint_least32_t = /*unsigned integer type*/ ;
  using uint_least64_t = /*unsigned integer type*/ ;
  using uintmax_t = /*unsigned integer type*/ ;
  using uintptr_t = /*unsigned integer type*/ ; // optional
}
/* also defines macros of the form:
INT_[FAST LEAST]{8 16 32 64}_MIN
[U]INT_[FAST LEAST]{8 16 32 64}_MAX
INT{MAX PTR}_MIN
[U]INT{MAX PTR}_MAX
{PTRDIFF SIG_ATOMIC WCHAR WINT}{_MAX _MIN}
SIZE_MAX
*/
/* also defines function-like macros of the form:
[U]INT{8 16 32 64 MAX}_C
*/

二次

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

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

扫码关注腾讯云开发者

领取腾讯云代金券