Standard library header <cstdint> (C++11)
From cppreference.com
This header was originally in the C standard library as <stdint.h>.
This header is part of the type support library, providing fixed width integer types and part of C numeric limits interface.
Note
For each of the typedef names listed above marked (optional), an implementation defines it if and only if the implementation provides a corresponding type.
For each of the macros marked listed above (conditionally present), an implementation defines it if and only if the implementation defines the corresponding typedef name.
Synopsis
// all freestanding
#define __STDC_VERSION_STDINT_H__ 202311L
namespace std {
using int8_t = /* implementation-defined */; // optional
using int16_t = /* implementation-defined */; // optional
using int32_t = /* implementation-defined */; // optional
using int64_t = /* implementation-defined */; // optional
using int/*N*/_t = /* see description */; // optional
using int_fast8_t = /* implementation-defined */;
using int_fast16_t = /* implementation-defined */;
using int_fast32_t = /* implementation-defined */;
using int_fast64_t = /* implementation-defined */;
using int_fast/*N*/_t = /* see description */; // optional
using int_least8_t = /* implementation-defined */;
using int_least16_t = /* implementation-defined */;
using int_least32_t = /* implementation-defined */;
using int_least64_t = /* implementation-defined */;
using int_least/*N*/_t = /* see description */; // optional
using intmax_t = /* implementation-defined */;
using intptr_t = /* implementation-defined */; // optional
using uint8_t = /* implementation-defined */; // optional
using uint16_t = /* implementation-defined */; // optional
using uint32_t = /* implementation-defined */; // optional
using uint64_t = /* implementation-defined */; // optional
using uint/*N*/_t = /* see description */; // optional
using uint_fast8_t = /* implementation-defined */;
using uint_fast16_t = /* implementation-defined */;
using uint_fast32_t = /* implementation-defined */;
using uint_fast64_t = /* implementation-defined */;
using uint_fast/*N*/_t = /* see description */; // optional
using uint_least8_t = /* implementation-defined */;
using uint_least16_t = /* implementation-defined */;
using uint_least32_t = /* implementation-defined */;
using uint_least64_t = /* implementation-defined */;
using uint_least/*N*/_t = /* see description */; // optional
using uintmax_t = /* implementation-defined */;
using uintptr_t = /* implementation-defined */; // optional
}
#define INT/*N*/_MIN /* see description */
#define INT/*N*/_MAX /* see description */
#define UINT/*N*/_MAX /* see description */
#define INT/*N*/_WIDTH /* see description */
#define UINT/*N*/_WIDTH /* see description */
#define INT_FAST/*N*/_MIN /* see description */
#define INT_FAST/*N*/_MAX /* see description */
#define UINT_FAST/*N*/_MAX /* see description */
#define INT_FAST/*N*/_WIDTH /* see description */
#define UINT_FAST/*N*/_WIDTH /* see description */
#define INT_LEAST/*N*/_MIN /* see description */
#define INT_LEAST/*N*/_MAX /* see description */
#define UINT_LEAST/*N*/_MAX /* see description */
#define INT_LEAST/*N*/_WIDTH /* see description */
#define UINT_LEAST/*N*/_WIDTH /* see description */
#define INTMAX_MIN /* see description */
#define INTMAX_MAX /* see description */
#define UINTMAX_MAX /* see description */
#define INTMAX_WIDTH /* see description */
#define UINTMAX_WIDTH /* see description */
#define INTPTR_MIN /* see description */ // optional
#define INTPTR_MAX /* see description */ // optional
#define UINTPTR_MAX /* see description */ // optional
#define INTPTR_WIDTH /* see description */ // optional
#define UINTPTR_WIDTH /* see description */ // optional
#define PTRDIFF_MIN /* see description */
#define PTRDIFF_MAX /* see description */
#define PTRDIFF_WIDTH /* see description */
#define SIZE_MAX /* see description */
#define SIZE_WIDTH /* see description */
#define SIG_ATOMIC_MIN /* see description */
#define SIG_ATOMIC_MAX /* see description */
#define SIG_ATOMIC_WIDTH /* see description */
#define WCHAR_MIN /* see description */
#define WCHAR_MAX /* see description */
#define WCHAR_WIDTH /* see description */
#define WINT_MIN /* see description */
#define WINT_MAX /* see description */
#define WINT_WIDTH /* see description */
#define INT/*N*/_C(value) /* see description */
#define UINT/*N*/_C(value) /* see description */
#define INTMAX_C(value) /* see description */
#define UINTMAX_C(value) /* see description */
