Fixed width integer types (C++11 feature)

From Cppreference

Jump to: navigation, search

Contents

Types

Defined in header <cstdint>
int8_t signed integer type with width of 8 bits
int16_t signed integer type with width of 16 bits
int32_t signed integer type with width of 32 bits
int64_t signed integer type with width of 64 bits
int_fast8_t fastest signed integer type with width of at least 8 bits
int_fast16_t fastest signed integer type with width of at least 16 bits
int_fast32_t fastest signed integer type with width of at least 32 bits
int_fast64_t fastest signed integer type with width of at least 64 bits
int_least8_t signed integer type with width of at least 8 bits
int_least16_t signed integer type with width of at least 16 bits
int_least32_t signed integer type with width of at least 32 bits
int_least64_t signed integer type with width of at least 64 bits
intmax_t maximum width integer type
intptr_t integer type capable of holding a pointer
uint8_t unsigned integer type with width of 8 bits
uint16_t unsigned integer type with width of 16 bits
uint32_t unsigned integer type with width of 32 bits
uint64_t unsigned integer type with width of 64 bits
uint_fast8_t fastest unsigned integer type with width of at least 8 bits
uint_fast16_t fastest unsigned integer type with width of at least 16 bits
uint_fast32_t fastest unsigned integer type with width of at least 32 bits
uint_fast64_t fastest unsigned integer type with width of at least 64 bits
uint_least8_t unsigned integer type with width of at least 8 bits
uint_least16_t unsigned integer type with width of at least 16 bits
uint_least32_t unsigned integer type with width of at least 32 bits
uint_least64_t unsigned integer type with width of at least 64 bits
uintmax_t maximum width unsigned integer type
uintptr_t unsigned integer type capable of holding a pointer

Macro constants

Defined in header <cstdint>
Signed integers : minimum value
INT8_MIN minimum value of an object of type int8_t
(macro constant)
INT16_MIN minimum value of an object of type int16_t
(macro constant)
INT32_MIN minimum value of an object of type int32_t
(macro constant)
INT64_MIN minimum value of an object of type int64_t
(macro constant)
INT_FAST8_MIN minimum value of an object of type int_fast8_t
(macro constant)
INT_FAST16_MIN minimum value of an object of type int_fast16_t
(macro constant)
INT_FAST32_MIN minimum value of an object of type int_fast32_t
(macro constant)
INT_FAST64_MIN minimum value of an object of type int_fast64_t
(macro constant)
INT_LEAST8_MIN minimum value of an object of type int_least8_t
(macro constant)
INT_LEAST16_MIN minimum value of an object of type int_least16_t
(macro constant)
INT_LEAST32_MIN minimum value of an object of type int_least32_t
(macro constant)
INT_LEAST64_MIN minimum value of an object of type int_least64_t
(macro constant)
INTPTR_MIN minimum value of an object of type intptr_t
(macro constant)
INTMAX_MIN minimum value of an object of type intmax_t
(macro constant)
Signed integers : maximum value
INT8_MAX maximum value of an object of type int8_t
(macro constant)
INT16_MAX maximum value of an object of type int16_t
(macro constant)
INT32_MAX maximum value of an object of type int32_t
(macro constant)
INT64_MAX maximum value of an object of type int64_t
(macro constant)
INT_FAST8_MAX maximum value of an object of type int_fast8_t
(macro constant)
INT_FAST16_MAX maximum value of an object of type int_fast16_t
(macro constant)
INT_FAST32_MAX maximum value of an object of type int_fast32_t
(macro constant)
INT_FAST64_MAX maximum value of an object of type int_fast64_t
(macro constant)
INT_LEAST8_MAX maximum value of an object of type int_least8_t
(macro constant)
INT_LEAST16_MAX maximum value of an object of type int_least16_t
(macro constant)
INT_LEAST32_MAX maximum value of an object of type int_least32_t
(macro constant)
INT_LEAST64_MAX maximum value of an object of type int_least64_t
(macro constant)
INTPTR_MAX maximum value of an object of type intptr_t
(macro constant)
INTMAX_MAX maximum value of an object of type intmax_t
(macro constant)
Unsigned integers : maximum value
UINT8_MAX maximum value of an object of type uint8_t
(macro constant)
UINT16_MAX maximum value of an object of type uint16_t
(macro constant)
UINT32_MAX maximum value of an object of type uint32_t
(macro constant)
UINT64_MAX maximum value of an object of type uint64_t
(macro constant)
UINT_FAST8_MAX maximum value of an object of type uint_fast8_t
(macro constant)
UINT_FAST16_MAX maximum value of an object of type uint_fast16_t
(macro constant)
UINT_FAST32_MAX maximum value of an object of type uint_fast32_t
(macro constant)
UINT_FAST64_MAX maximum value of an object of type uint_fast64_t
(macro constant)
UINT_LEAST8_MAX maximum value of an object of type uint_least8_t
(macro constant)
UINT_LEAST16_MAX maximum value of an object of type uint_least16_t
(macro constant)
UINT_LEAST32_MAX maximum value of an object of type uint_least32_t
(macro constant)
UINT_LEAST64_MAX maximum value of an object of type uint_least64_t
(macro constant)
UINTPTR_MAX maximum value of an object of type uintptr_t
(macro constant)
UINTMAX_MAX maximum value of an object of type uintmax_t
(macro constant)