Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <stddef.h>

      From cppreference.com
      <c‎ |header
       
       
       

      This header is part oftypes support library, in particular, it provides additional basic types and convenience macros.

      Contents

      Types

      signed integer type returned when subtracting two pointers
      (typedef)[edit]
      the type of the predefined null pointer constantnullptr
      (typedef)[edit]
      a type with alignment requirement as great as any other scalar type
      (typedef)[edit]
      unsigned integer type returned by thesizeof operator
      (typedef)[edit]

      Constants

      implementation-defined null pointer constant
      (macro constant)[edit]

      Macros

      byte offset from the beginning of a struct type to specified member
      (function macro)[edit]

      [edit]Synopsis

      #define __STDC_VERSION_STDDEF_H__ 202311L typedef/* see description */ptrdiff_t;typedef/* see description */nullptr_t;typedef/* see description */max_align_t;typedef/* see description */wchar_t;typedef/* see description */size_t; #define NULL /* see description */#define unreachable() /* see description */#define offsetof(P, D) /* see description */

      Only if the implementation defines__STDC_LIB_EXT1__ and additionally the user codedefines__STDC_WANT_LIB_EXT1__ before any inclusion of<stddef.h>:

      #if defined(__STDC_WANT_LIB_EXT1__)typedef/* see description */ rsize_t;#endif
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/header/stddef&oldid=180206"

      [8]ページ先頭

      ©2009-2025 Movatter.jp