0% found this document useful (0 votes)
16 views

(Since C++11) (Since C++11) (1) : (Concepts TS)

This document lists C++ keywords and identifiers with special meaning. It includes keywords such as auto, bool, char, class, const, etc. It notes that some keywords like and and or provide alternative representations with digraphs. It also lists identifiers like override and final that have special meaning in certain contexts. The document discusses that the std namespace is used for the standard library and posix is reserved for a future namespace. It finally lists preprocessor directives and tokens.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

(Since C++11) (Since C++11) (1) : (Concepts TS)

This document lists C++ keywords and identifiers with special meaning. It includes keywords such as auto, bool, char, class, const, etc. It notes that some keywords like and and or provide alternative representations with digraphs. It also lists identifiers like override and final that have special meaning in certain contexts. The document discusses that the std namespace is used for the standard library and posix is reserved for a future namespace. It finally lists preprocessor directives and tokens.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

alignas (since C++11)

alignof (since C++11)


and
and_eq
asm
auto(1)
bitand
bitor
bool
break
case
catch
char
char16_t (since C++11)
char32_t (since C++11)
class
compl
concept (concepts TS)
const
constexpr (since C++11)
const_cast
continue
decltype (since C++11)
default(1)
delete(1)
do
double
dynamic_cast

else
enum
explicit
export(1)
extern
false
float
for
friend
goto
if
inline
int
long
mutable
namespace
new
noexcept (since C++11)
not
not_eq
nullptr (since C++11)
operator
or
or_eq
private
protected
public
register
reinterpret_cast

requires (concepts TS)


return
short
signed
sizeof
static
static_assert (since C++11)
static_cast
struct
switch
template
this
thread_local (since C++11)
throw
true
try
typedef
typeid
typename
union
unsigned
using(1)
virtual
void
volatile
wchar_t
while
xor
xor_eq

(1) - meaning changed in C++11

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 two identifiers with special meaning, which may be used as
names of objects or functions, but have special meaning in certain contexts.
override (C++11)
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 posix is reserved for a future top-level namespace. The behavior is
undefined if a program declares or defines anything in that namespace.

(since C++11)

The following tokens are recognized by the preprocessor when in context of a preprocessor
directive:
if
elif
else
endif
defined

ifdef
ifndef
define
undef

include
line
error
pragma

The following tokens are recognized by the preprocessor outside the context of a preprocessor
directive:
_Pragma(since C++11)

You might also like