Difference between revisions of "cpp/keyword"
m (Alphabetically sorts the list of identifiers with special meaning,) |
|||
Line 118: | Line 118: | ||
|- | |- | ||
| | | | ||
− | |||
{{ltt|cpp/language/final}} {{mark c++11}}<br> | {{ltt|cpp/language/final}} {{mark c++11}}<br> | ||
{{rlt|import}} {{mark c++20}}<br> | {{rlt|import}} {{mark c++20}}<br> | ||
{{rlt|module}} {{mark c++20}}<br> | {{rlt|module}} {{mark c++20}}<br> | ||
+ | {{ltt|cpp/language/override}} {{mark c++11}}<br> | ||
{{ltt|cpp/language/transactional_memory|transaction_safe}} {{mark since tm ts}}<br> | {{ltt|cpp/language/transactional_memory|transaction_safe}} {{mark since tm ts}}<br> | ||
{{ltt|cpp/language/transactional_memory|transaction_safe_dynamic}} {{mark since tm ts}} | {{ltt|cpp/language/transactional_memory|transaction_safe_dynamic}} {{mark since tm ts}} |
Revision as of 22:50, 2 July 2020
This is a list of reserved keywords in C++. Since they are used by the language, these keywords are not available for re-definition or overloading.
- (1) - meaning changed or new meaning added in C++11.
- (2) - meaning changed in C++17.
- (3) - meaning changed in C++20.
Note that and
, bitor
, or
, xor
, compl
, bitand
, and_eq
, or_eq
, xor_eq
, not
, and not_eq
(along with the digraphs <%
, %>
, <:
, :>
, %:
, and %:%:
) provide an alternative way to represent standard tokens.
In addition to keywords, there are identifiers with special meaning, which may be used as names of objects or functions, but have special meaning in certain contexts.
final (C++11) |
Also, all identifiers that contain a double underscore __ in any position and each identifier that begins with an underscore followed by an uppercase letter is always reserved and all identifiers that begin with an underscore are reserved for use as names in the global namespace. See identifiers for more details.
The namespace std
is used to place names of the standard C++ library. See Extending namespace std for the rules about adding names to it.
The name |
(since C++11) |
The following tokens are recognized by the preprocessor when in context of a preprocessor directive:
defined |
The following tokens are recognized by the preprocessor outside the context of a preprocessor directive:
_Pragma(since C++11) |
See also
C documentation for C keywords
|