character literal
From cppreference.com
Contents |
[edit] Syntax
' unescaped_character|escaped_character '
|
(1) | ||||||||
L ' unescaped_character|escaped_character '
|
(2) | ||||||||
u ' unescaped_character|escaped_character ' (since C++11)
|
(3) | ||||||||
U ' unescaped_character|escaped_character ' (since C++11)
|
(4) | ||||||||
' (unescaped_character|escaped_character)+ '
|
(5) | ||||||||
[edit] Explanation
- unescaped_character
- Any valid character
- escaped_character
- see escape sequences
[edit] Type
- char
- wchar_t
- char16_t
- char32_t
- int
[edit] Note
Multicharacter literals (5) have implementation-defined value