Standard library header <cstddef>

From cppreference.com
< cpplrm; | header

This header was originally in the C standard library as <stddef.h>.

This header is part of the utility library.

Macros

implementation-defined null pointer constant
(macro constant)
byte offset from the beginning of a standard-layout type to specified member
(function macro)

Types

unsigned integer type returned by the sizeof operator
(typedef)
signed integer type returned when subtracting two pointers
(typedef)
(C++11)
the type of the null pointer literal nullptr
(typedef)
trivial type with alignment requirement as great as any other scalar type
(typedef)
(C++17)
the byte type
(enum)

Synopsis

namespace std {
    using ptrdiff_t = /*see definition*/ ;
    using size_t = /*see definition*/ ;
    using max_align_t = /*see definition*/ ;
    using nullptr_t = decltype(nullptr);

    enum class byte : unsigned char {} ;
    template <class IntegerType>
    constexpr byte& operator<<=(byte& b, IntegerType shift) noexcept;
    template <class IntegerType>
    constexpr byte operator<<(byte b, IntegerType shift) noexcept;
    template <class IntegerType>
    constexpr byte& operator>>=(byte& b, IntegerType shift) noexcept;
    template <class IntegerType>
    constexpr byte operator>>(byte b, IntegerType 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 IntegerType>
    constexpr IntegerType to_integer(byte b) noexcept; 
}
#define NULL /*see definition*/
#define offsetof(P, D) /*see definition*/

Notes