Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/keyword/char8 t"

From cppreference.com
< cpp‎ | keyword
m (Notes: fmt.)
m (See also: templatized.)
 
Line 12: Line 12:
  
 
===See also===
 
===See also===
* [[cpp/language/types|Fundamental types]]: {{rlpt|void}}, {{lc|std::nullptr_t}}
+
{{cpp/keywords/fundamental types list}}
** [[cpp/language/types#Integral_types|Integral types]]: {{rlpt|int}}. [[cpp/language/types#Modifiers|Modifiers]]: {{rlpt|signed}}, {{rlpt|unsigned}}, {{rlpt|short}}, {{rlpt|long}}
+
*** [[cpp/language/types#Boolean_type|Boolean type]]: {{rlpt|bool}}. [[cpp/language/bool_literal|Boolean literals]]: {{rlpt|false}}, {{rlpt|true}}
+
*** [[cpp/language/types#Character_types|Character types]]: {{rlpt|char}}, {{rlpt|char16_t}}, {{rlpt|char32_t}}, {{rlpt|wchar_t}}
+
** [[cpp/language/types#Floating-point_types|Floating-point types]]: {{rlpt|float}}, {{rlpt|double}}
+
  
 
{{langlinks|ar|de|es|fr|it|ja|pl|pt|ru|zh}}
 
{{langlinks|ar|de|es|fr|it|ja|pl|pt|ru|zh}}

Latest revision as of 06:53, 1 September 2024

 
 
C++ language
General topics
Flow control
Conditional execution statements
if
Iteration statements (loops)
for
range-for (C++11)
Jump statements
Functions
Function declaration
Lambda function expression
inline specifier
Dynamic exception specifications (until C++17*)
noexcept specifier (C++11)
Exceptions
Namespaces
Types
Specifiers
const/volatile
decltype (C++11)
auto (C++11)
constexpr (C++11)
consteval (C++20)
constinit (C++20)
Storage duration specifiers
Initialization
Expressions
Alternative representations
Literals
Boolean - Integer - Floating-point
Character - String - nullptr (C++11)
User-defined (C++11)
Utilities
Attributes (C++11)
Types
typedef declaration
Type alias declaration (C++11)
Casts
Memory allocation
Classes
Class-specific function properties
explicit (C++11)
static

Special member functions
Templates
Miscellaneous
 
 

[edit] Usage

char8_t type: as the declaration of the type

[edit] Notes

Feature-test macro Value Std Feature
__cpp_char8_t 201811L (C++20) char8_t
202207L (C++20)
(DR)
char8_t compatibility and portability fix (allow initialization of (unsigned) char arrays from UTF-8 string literals)

[edit] See also