The following identifiers are reserved words—identifiers with predefined meanings in the C++ language. The programmer cannot declare them for other uses (for example, variable names) in a C++ program.
and | default | namespace | struct |
and_eq | delete | new | switch |
alignof | do | noexcept | template |
asm | double | not | this |
auto | dynamic_cast | not_eq | thread_local |
bitand | else | nullptr | throw |
bitor | enum | operator | true |
bool | explicit | or | try |
break | export | or_eq | typedef |
case | extern | private | typeid |
catch | false | protected | typename |
char | float | public | union |
char16_t | for | register | unsigned |
char32_t | friend | reinterpret_cast | using |
class | goto | return | virtual |
compl | if | short | void |
const | inline | signed | volatile |
const_cast | int | sizeof | wchar_t |
constexpr | while | static | xor |
continue | long | static_assert | xor_eq |
decltype | mutable | static_cast |