標準ライブラリヘッダ <cstddef>
From cppreference.com
このヘッダは元々C標準ライブラリに <stddef.h> としてありました。
このヘッダは ユーティリティ ライブラリの一部です。
マクロ | ||
| 処理系定義のヌルポインタ定数 (マクロ定数) | ||
| 標準レイアウト型の先頭から指定されたメンバまでのバイトオフセット (関数マクロ) | ||
型 | ||
| sizeof 演算子が返す符号無し整数型 (typedef) | ||
| 2つのポインタの差を計算したときに返される符号付き整数型 (typedef) | ||
| (C++11) |
ヌルポインタ リテラル nullptr の型 (typedef) | |
| (C++11) |
他のどのスカラ型よりも大きいアライメント要件を持つ自明型 (typedef) | |
| (C++17) |
バイト型 (enum) | |
関数 | ||
| (C++17) |
std::byte を整数に変換する (関数テンプレート) | |
[編集] 概要
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 */