名前空間
変種
操作

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

From cppreference.com
 
 
標準ライブラリヘッダー
 

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

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

目次

マクロ

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

sizeof 演算子が返す符号無し整数型
(typedef) [編集]
2つのポインタの差を計算したときに返される符号付き整数型
(typedef) [編集]
(C++11)
ヌルポインタ リテラル nullptr の型
(typedef) [編集]
他のどのスカラ型よりも大きいアライメント要件を持つ自明型
(typedef) [編集]
(C++17)
バイト型
(enum) [編集]

関数

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 */

[編集] 備考

English 日本語 中文(简体) 中文(繁體)