Standardbibliothek-Header <cstddef>
Von cppreference.com
Dieser Header war ursprünglich in der C-Standardbibliothek unter <stddef.h>.
Dieser Header ist Teil der Utility-Bibliothek.
Makros | ||
| implementierungsdefinierte Nullzeigerkonstante (macro constant) | ||
| Byte-Offset vom Anfang eines Standardlayout-Typs zu einem angegebenen Mitglied (function macro) | ||
Typen | ||
| nicht vorzeichenbehafteter Ganzzahltyp, der vom sizeof-Operator zurückgegeben wird (typedef) | ||
| vorzeichenbehafteter Ganzzahltyp, der bei der Subtraktion zweier Zeiger zurückgegeben wird (typedef) | ||
| (C++11) |
der Typ des Nullzeigerliterals nullptr (typedef) | |
| (C++11) |
trivialer Typ mit einer Ausrichtungsvoraussetzung, die so groß ist wie die jedes anderen Skalar-Typs (typedef) | |
| (C++17) |
der Byte-Typ (enum) | |
Funktionen | ||
| (C++17) |
konvertiert std::byte in einen Integer (Funktionstemplate) | |
[bearbeiten] Synopsis
namespace std { using ptrdiff_t = /* see description */; using size_t = /* see description */; using max_align_t = /* see description */; using nullptr_t = decltype(nullptr); enum class byte : unsigned char {}; // byte type operations template<class IntType> constexpr byte& operator<<=(byte& b, IntType shift) noexcept; template<class IntType> constexpr byte operator<<(byte b, IntType shift) noexcept; template<class IntType> constexpr byte& operator>>=(byte& b, IntType shift) noexcept; template<class IntType> constexpr byte operator>>(byte b, IntType shift) noexcept; constexpr byte& operator|=(byte& l, byte r) noexcept; constexpr byte operator|(byte l, byte r) noexcept; constexpr byte& operator&=(byte& l, byte r) noexcept; constexpr byte operator&(byte l, byte r) noexcept; constexpr byte& operator^=(byte& l, byte r) noexcept; constexpr byte operator^(byte l, byte r) noexcept; constexpr byte operator~(byte b) noexcept; template<class IntType> constexpr IntType to_integer(byte b) noexcept; } #define NULL /* see description */ #define offsetof(P, D) /* see description */