5 Lexical conventions [lex]

5.13 Literals [lex.literal]

5.13.3 Character literals [lex.ccon]

Table 9: Character literals [tab:lex.ccon.literal]
Encoding
Kind
Type
Associated char-
Example
prefix
acter encoding
none
char
encoding of
'v'
non-encodable ordinary character literal
int
the execution
'\U0001F525'
ordinary multicharacter literal
int
character set
'abcd'
L
wchar_­t
encoding of
L'w'
non-encodable wide character literal
wchar_­t
the execution
L'\U0001F32A'
wide multicharacter literal
wchar_­t
wide-character set
L'abcd'
u8
char8_­t
UTF-8
u8'x'
u
char16_­t
UTF-16
u'y'
U
char32_­t
UTF-32
U'z'