Table of Contents
C++ Type support (basic types, RTTI, type traits)
https://en.cppreference.com/w/cpp/types
See also type system overview and fundamental types defined by the language.
Additional basic types and macros
}}
}}
[[cpp/types/integer | Fixed width integer types]] {{mark since c++11}}
Numeric limits
[[cpp/types/climits|C numeric limits interface]]
Runtime type identification
Type property
These type traits define compile-time template-based interfaces to query the properties of types.
Attempting to specialize a template defined in the
header and described in this section results in undefined behavior.
A template defined in the
header may be instantiated with an incomplete type unless otherwise specified, notwithstanding the general prohibition against instantiating standard library templates with incomplete types.
Operations on traits
Base classes
Two specializations of
for the type
are provided:
|
}}
|
}}
Type modifications
These type traits apply modifications on a template parameter, and declare (sometimes conditionally) the
member typedef as the resulting type.
Attempting to specialize a template defined in the
header and described in this section results in undefined behavior, except that
}} may be specialized as required in description.
A template defined in the
header may be instantiated with an incomplete type unless otherwise specified, notwithstanding the general prohibition against instantiating standard library templates with incomplete types.