Reserved Words (C++)
Go Up to Keywords, By Category Index
Reserved words cannot be used as identifiers. That is, reserved words cannot be used to name:
- Variables, constants
- Functions
- Classes, enums
If you attempt to use a reserved word as an identifier, the C++ compiler emits an error message that is specific to the situation, such as:
<name> is not a valid identifier (C++).
All of the C++Builder keywords are reserved words. Here are a few examples:
- compl
- enum
- throw
- public
- __declspec
- __alignment_of (a C++11 type trait function)
- _Bool
Unimplemented, Reserved Words
The following words are reserved words but are not yet implemented in C++Builder. These words are ignored by the compiler if specific compiler flags are set (see the description of each word for detailed information). These words are also listed in the Keywords, Alphabetical Listing Index.
- axiom
- _Bool
- complex
- concept
- concept_map
- constexpr
- export
- imaginary
- late_check
- nullptr
- requires
- restrict
- thread_local