Standardbibliotheks-Header <cstdint> (C++11)
Von cppreference.com
Dieser Header war ursprünglich in der C-Standardbibliothek als <stdint.h> enthalten.
Dieser Header ist Teil der Typunterstützungs-Bibliothek und stellt Ganzzahltypen mit fester Breite sowie Teile der C-Schnittstelle für numerische Grenzwerte bereit.
Typen | ||
| int8_tint16_tint32_tint64_t (optional) |
vorzeichenbehafteter Ganzzahltyp mit exakt 8, 16, 32 bzw. 64 Bits Breite ohne Auffüllbits und unter Verwendung von 2er-Komplement für negative Werte (nur bereitgestellt, wenn die Implementierung den Typ direkt unterstützt) (typedef) | |
| int_fast8_tint_fast16_tint_fast32_tint_fast64_t |
schnellster vorzeichenbehafteter Ganzzahltyp mit einer Breite von mindestens 8, 16, 32 bzw. 64 Bits (typedef) | |
| int_least8_tint_least16_tint_least32_tint_least64_t |
kleinster vorzeichenbehafteter Ganzzahltyp mit einer Breite von mindestens 8, 16, 32 bzw. 64 Bits (typedef) | |
| intmax_t |
vorzeichenbehafteter Ganzzahltyp mit maximaler Breite (typedef) | |
| intptr_t (optional) |
vorzeichenbehafteter Ganzzahltyp, der einen Zeiger auf void aufnehmen kann (typedef) | |
| uint8_tuint16_tuint32_tuint64_t (optional) |
vorzeichenloser Ganzzahltyp mit exakt 8, 16, 32 bzw. 64 Bits Breite (nur bereitgestellt, wenn die Implementierung den Typ direkt unterstützt) (typedef) | |
| uint_fast8_tuint_fast16_tuint_fast32_tuint_fast64_t |
schnellster vorzeichenloser Ganzzahltyp mit einer Breite von mindestens 8, 16, 32 bzw. 64 Bits (typedef) | |
| uint_least8_tuint_least16_tuint_least32_tuint_least64_t |
kleinster vorzeichenloser Ganzzahltyp mit einer Breite von mindestens 8, 16, 32 bzw. 64 Bits (typedef) | |
| uintmax_t |
vorzeichenloser Ganzzahltyp mit maximaler Breite (typedef) | |
| uintptr_t (optional) |
vorzeichenloser Ganzzahltyp, der einen Zeiger auf void aufnehmen kann (typedef) | |
Makros | ||
Vorzeichenbehaftete Ganzzahlen : Minimalwert | ||
| INT8_MININT16_MININT32_MININT64_MIN (optional) |
Minimalwert von std::int8_t, std::int16_t, std::int32_t und std::int64_t(macro constant) | |
| INT_FAST8_MININT_FAST16_MININT_FAST32_MININT_FAST64_MIN |
Minimalwert von std::int_fast8_t, std::int_fast16_t, std::int_fast32_t und std::int_fast64_t(macro constant) | |
| INT_LEAST8_MININT_LEAST16_MININT_LEAST32_MININT_LEAST64_MIN |
Minimalwert von std::int_least8_t, std::int_least16_t, std::int_least32_t und std::int_least64_t(macro constant) | |
| INTPTR_MIN (optional) |
Minimalwert von std::intptr_t(macro constant) | |
| INTMAX_MIN |
Minimalwert von std::intmax_t(macro constant) | |
Vorzeichenbehaftete Ganzzahlen : Maximalwert | ||
| INT8_MAXINT16_MAXINT32_MAXINT64_MAX (optional) |
Maximalwert von std::int8_t, std::int16_t, std::int32_t und std::int64_t(macro constant) | |
| INT_FAST8_MAXINT_FAST16_MAXINT_FAST32_MAXINT_FAST64_MAX |
Maximalwert von std::int_fast8_t, std::int_fast16_t, std::int_fast32_t und std::int_fast64_t(macro constant) | |
| INT_LEAST8_MAXINT_LEAST16_MAXINT_LEAST32_MAXINT_LEAST64_MAX |
Maximalwert von std::int_least8_t, std::int_least16_t, std::int_least32_t und std::int_least64_t(macro constant) | |
| INTPTR_MAX (optional) |
Maximalwert von std::intptr_t(macro constant) | |
| INTMAX_MAX |
Maximalwert von std::intmax_t(macro constant) | |
Vorzeichenlose Ganzzahlen : Maximalwert | ||
| UINT8_MAXUINT16_MAXUINT32_MAXUINT64_MAX (optional) |
Maximalwert von std::uint8_t, std::uint16_t, std::uint32_t und std::uint64_t(macro constant) | |
| UINT_FAST8_MAXUINT_FAST16_MAXUINT_FAST32_MAXUINT_FAST64_MAX |
Maximalwert von std::uint_fast8_t, std::uint_fast16_t, std::uint_fast32_t und std::uint_fast64_t(macro constant) | |
| UINT_LEAST8_MAXUINT_LEAST16_MAXUINT_LEAST32_MAXUINT_LEAST64_MAX |
Maximalwert von std::uint_least8_t, std::uint_least16_t, std::uint_least32_t und std::uint_least64_t(macro constant) | |
| UINTPTR_MAX (optional) |
Maximalwert von std::uintptr_t(macro constant) | |
| UINTMAX_MAX |
Maximalwert von std::uintmax_t(macro constant) | |
Grenzwerte anderer Ganzzahltypen | ||
| PTRDIFF_MIN (C++11) |
Minimalwert von std::ptrdiff_t (macro constant) | |
| PTRDIFF_MAX (C++11) |
Maximalwert von std::ptrdiff_t (macro constant) | |
| SIZE_MAX (C++11) |
Maximalwert von std::size_t (macro constant) | |
| SIG_ATOMIC_MIN (C++11) |
Minimalwert von std::sig_atomic_t (macro constant) | |
| SIG_ATOMIC_MAX (C++11) |
Maximalwert von std::sig_atomic_t (macro constant) | |
| WCHAR_MIN (C++11) |
Minimalwert von wchar_t (macro constant) | |
| WCHAR_MAX (C++11) |
Maximalwert von wchar_t (macro constant) | |
| WINT_MIN (C++11) |
Minimalwert von std::wint_t(macro constant) | |
| WINT_MAX (C++11) |
Maximalwert von std::wint_t(macro constant) | |
Funktionsmakros für Ganzzahlkonstanten | ||
| INT8_CINT16_CINT32_CINT64_C |
erweitert zu einem Ganzzahlkonstantenausdruck mit dem durch sein Argument angegebenen Wert und dessen Typ der promotede Typ von std::int_least8_t, std::int_least16_t, std::int_least32_t und std::int_least64_t ist(function macro) | |
| INTMAX_C |
erweitert zu einem Ganzzahlkonstantenausdruck mit dem durch sein Argument angegebenen Wert und dem Typ std::intmax_t(function macro) | |
| UINT8_CUINT16_CUINT32_CUINT64_C |
erweitert zu einem Ganzzahlkonstantenausdruck mit dem durch sein Argument angegebenen Wert und dessen Typ der promotede Typ von std::uint_least8_t, std::uint_least16_t, std::uint_least32_t und std::uint_least64_t ist(function macro) | |
| UINTMAX_C |
erweitert zu einem Ganzzahlkonstantenausdruck mit dem durch sein Argument angegebenen Wert und dem Typ std::uintmax_t(function macro) | |
[edit] Synopsis
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 intN_t = /* see description */; // optional, see description 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_fastN_t = /* see description */; // optional, see description 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 int_leastN_t = /* see description */; // optional, see description 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 uintN_t = /* see description */; // optional, see description 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_fastN_t = /* see description */; // optional, see description 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 uint_leastN_t = /* see description */; // optional, see description using uintmax_t = /* unsigned integer type */; using uintptr_t = /* unsigned integer type */; // optional } #define INTN_MIN /* see description */ #define INTN_MAX /* see description */ #define UINTN_MAX /* see description */ #define INT_FASTN_MIN /* see description */ #define INT_FASTN_MAX /* see description */ #define UINT_FASTN_MAX /* see description */ #define INT_LEASTN_MIN /* see description */ #define INT_LEASTN_MAX /* see description */ #define UINT_LEASTN_MAX /* see description */ #define INTMAX_MIN /* see description */ #define INTMAX_MAX /* see description */ #define UINTMAX_MAX /* see description */ #define INTPTR_MIN /* see description */ // optional #define INTPTR_MAX /* see description */ // optional #define UINTPTR_MAX /* see description */ // optional #define PTRDIFF_MIN /* see description */ #define PTRDIFF_MAX /* see description */ #define SIZE_MAX /* see description */ #define SIG_ATOMIC_MIN /* see description */ #define SIG_ATOMIC_MAX /* see description */ #define WCHAR_MIN /* see description */ #define WCHAR_MAX /* see description */ #define WINT_MIN /* see description */ #define WINT_MAX /* see description */ #define INTN_C(value) /* see description */ #define UINTN_C(value) /* see description */ #define INTMAX_C(value) /* see description */ #define UINTMAX_C(value) /* see description */