名前空間
変種
操作

標準ライブラリヘッダ <cstddef>

提供: cppreference.com
< cpp‎ | header
 
 
 

このヘッダは元々 C 標準ライブラリに <stddef.h> として存在していました。

このヘッダはユーティリティライブラリの一部です。

目次

マクロ

処理系定義のヌルポインタ定数
(マクロ定数) [edit]
標準レイアウト型の先頭から指定されたメンバまでのバイトオフセット
(関数マクロ) [edit]

sizeof 演算子によって返される符号なし整数型
(typedef) [edit]
2つのポインタを減算したとき返される符号付き整数型
(typedef) [edit]
(C++11)
ヌルポインタリテラル nullptr の型
(typedef) [edit]
他のいかなるスカラー型より大きいまたは等しいアライメント要件を持つトリビアルな型
(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 */

[編集] ノート