標準ライブラリヘッダ <cstddef> - cppreference.com
提供: cppreference.com
このヘッダは元々 C 標準ライブラリに <stddef.h> として存在していました。
このヘッダはユーティリティライブラリの一部です。
マクロ | |
| 処理系定義のヌルポインタ定数 (マクロ定数) [edit] | |
| 標準レイアウト型の先頭から指定されたメンバまでのバイトオフセット (関数マクロ) [edit] | |
型 | |
| sizeof 演算子によって返される符号なし整数型 (typedef) [edit] | |
| 2つのポインタを減算したとき返される符号付き整数型 (typedef) [edit] | |
(C++11) |
ヌルポインタリテラル nullptr の型 (typedef) [edit] |
(C++11) |
他のいかなるスカラー型より大きいまたは等しいアライメント要件を持つトリビアルな型 (typedef) [edit] |
(C++17) |
バイト型 (列挙) [edit] |
概要
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 */