Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Type support (basic types, RTTI)

      From cppreference.com
      <cpp
       
       
      Utilities library
       
       

      See alsotype system overview andfundamental types defined by the language.

      Contents

      [edit]Additional basic types and macros

      Defined in header<cstddef>
      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]
      implementation-defined null pointer constant
      (macro constant)[edit]
      trivial type with alignment requirement as great as any other scalar type
      (typedef)[edit]
      byte offset from the beginning of astandard-layout type to specified member
      (function macro)[edit]
      (C++17)
      the byte type
      (enum)[edit]
       
      Defined in header<cstdbool>(deprecated)(until C++20)
      Defined in header<stdbool.h>
      __bool_true_false_are_defined
      (C++11)(deprecated)
      C compatibility macro constant, expands to integer literal1
      (macro constant)[edit]
       
      Defined in header<cstdalign>(deprecated)(until C++20)
      Defined in header<stdalign.h>
      __alignas_is_defined
      (C++11)(deprecated)
      C compatibility macro constant, expands to integer literal1
      (macro constant)[edit]
      __alignof_is_defined
      (C++11)(deprecated)
      C compatibility macro constant, expands to integer literal1
      (macro constant)[edit]

      [edit]Fixed width integer types(since C++11)

      [edit]Fixed width floating-point types(since C++23)

      [edit]Numeric limits

      Defined in header<limits>
      provides an interface to query properties of all fundamental numeric types
      (class template)[edit]

      [edit]C numeric limits interface

      [edit]Runtime type identification

      Defined in header<typeinfo>
      contains some type’s information, the class returned by the typeid operator
      (class)[edit]
      exception that is thrown if an argument in atypeid expression is null
      (class)[edit]
      exception that is thrown by an invaliddynamic_cast expression, i.e. a cast of reference type fails
      (class)[edit]
       
      Defined in header<typeindex>
      (C++11)
      wrapper around atype_info object, that can be used as index in associative and unordered associative containers
      (class)[edit]

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 4036C++11__alignof_is_defined was underspecified in the C++ standardspecified and deprecated

      [edit]See also

      Type traits and metaprogramming library
      C documentation forType support library
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/types&oldid=170737"

      [8]ページ先頭

      ©2009-2025 Movatter.jp