C++官网参考链接:https://cplusplus.com/reference/cstdint/
头文件
<cstdint> (stdint.h)
整数类型
该头文件定义了一组具有特定宽度要求的整型类型别名,以及指定其限制的宏和创建这些类型值的宏函数。
类型
以下是基本整型或扩展整型的类型定义。
signed type | unsigned type | description |
---|---|---|
intmax_t | uintmax_t | Integer type with the maximum width supported. (支持最大宽度的整数类型。) |
int8_t | uint8_t | Integer type with a width of exactly 8, 16, 32, or 64 bits. (宽度为8、16、32或64位的整数类型。 对于有符号类型,负数用2的补码表示。 没有填充位。 可选的:如果不存在具有此类特征的类型,则不定义这些类型。) |
int16_t | uint16_t | |
int32_t | uint32_t | |
int64_t | uint64_t | |
int_least8_t | uint_least8_t | Integer type with a minimum of 8, 16, 32, or 64 bits. (最小值为 |