Namespaces
Variants
Views
Actions

Standard library header <cstddef>

From cppreference.com
< cpp‎ | header

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

This header is part of the utility library.

Contents

[edit] Macros

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

[edit] Types

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

[edit] Synopsis

namespace std {
    using ptrdiff_t = /*see definition*/ ;
    using size_t = /*see definition*/ ;
    using max_align_t = /*see definition*/ ;
    using nullptr_t = decltype(nullptr);
}
#define NULL /*see definition*/
#define offsetof(P, D) /*see definition*/

[edit] Notes