Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <cstddef>

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

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

      This header is part of theutility library.

      Contents

      Macros

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

      Types

      unsigned integer type returned by thesizeof operator
      (typedef)[edit]
      signed integer type returned when subtracting two pointers
      (typedef)[edit]
      (C++11)
      the type of the null pointer literalnullptr
      (typedef)[edit]
      trivial type with alignment requirement as great as any other scalar type
      (typedef)[edit]
      (C++17)
      the byte type
      (enum)[edit]

      Functions

      (C++17)
      convertstd::byte to integer
      (function template)[edit]

      [edit]Synopsis

      namespace std{using ptrdiff_t=/* see description */;using size_t=/* see description */;using max_align_t=/* see description */;using nullptr_t= decltype(nullptr); enumclass byte:unsignedchar{}; // byte type operationstemplate<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 */

      [edit]Notes

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/cstddef&oldid=154587"

      [8]ページ先頭

      ©2009-2025 Movatter.jp