Fundamental types

Header: <cstddef>

(See also type for type system overview and the list of type-related utilities that are provided by the C++ library)

# Declarations

typedef decltype(nullptr) nullptr_t;

(since C++11)

# Notes

Feature-test macro Value Std Feature __cpp_unicode_characters 200704L (C++11) New character types (char16_t and char32_t) __cpp_char8_t 201811L (C++20) char8_t 202207L (C++23) char8_t compatibility and portability fix (allow initialization of (unsigned) char arrays from UTF-8 string literals)

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 238C++98the constraints placed on a floating-point implementation was unspecifiedspecified asno constraint
CWG 1759C++11char is not guaranteed to be able to represent UTF-8 code unit 0x80guaranteed
CWG 2689C++11cv-qualified std::nullptr_t was not a fundemental typeit is
CWG 2723C++98the ranges of representable values for floating-point types were not specifiedspecified
P2460R2C++98wchar_t was required to be able to represent distinct codes for all membersof the largest extended character set specified among the supported localesnot required

# See also