User Tools

Site Tools


c_plus_plus_types

C++ Type support (basic types, RTTI, type traits)

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.

Miscellaneous transformations

See also

c_plus_plus_types.txt · Last modified: 2024/04/28 03:32 (external edit)