General topics | ||||||||||||||||
Flow control | ||||||||||||||||
Conditional execution statements | ||||||||||||||||
Iteration statements (loops) | ||||||||||||||||
Jump statements | ||||||||||||||||
Functions | ||||||||||||||||
Function declaration | ||||||||||||||||
Lambda function expression | ||||||||||||||||
inline specifier | ||||||||||||||||
Dynamic exception specifications(until C++17*) | ||||||||||||||||
noexcept specifier(C++11) | ||||||||||||||||
Exceptions | ||||||||||||||||
Namespaces | ||||||||||||||||
Types | ||||||||||||||||
Specifiers | ||||||||||||||||
| ||||||||||||||||
Storage duration specifiers | ||||||||||||||||
Initialization | ||||||||||||||||
Expressions | ||||||||||||||||
Alternative representations | ||||||||||||||||
Literals | ||||||||||||||||
Boolean -Integer -Floating-point | ||||||||||||||||
Character -String -nullptr(C++11) | ||||||||||||||||
User-defined(C++11) | ||||||||||||||||
Utilities | ||||||||||||||||
Attributes(C++11) | ||||||||||||||||
Types | ||||||||||||||||
typedef declaration | ||||||||||||||||
Type alias declaration(C++11) | ||||||||||||||||
Casts | ||||||||||||||||
Memory allocation | ||||||||||||||||
Classes | ||||||||||||||||
Class-specific function properties | ||||||||||||||||
| ||||||||||||||||
Special member functions | ||||||||||||||||
Templates | ||||||||||||||||
Miscellaneous | ||||||||||||||||
These are the punctuation symbols in C++. The meaning of each symbol is detailed in the linked pages.
Contents |
Preprocessing operators are recognized bypreprocessors.
(since C++11) |
| (since C++20) |
| (since C++11) |
| (since C++17) |
| (since C++26) |
static_cast
,const_cast
,reinterpret_cast
, ordynamic_cast
, delimit the expression.(since C++11) |
(since C++11) | |
(since C++17) | |
(since C++20) |
(since C++11) |
defined
,__has_include
(since C++17),__has_cpp_attribute
(since C++20) preprocessing operator.
| (since C++11) | ||
| (since C++14) | ||
| (since C++17) | ||
| (since C++20) |
| (since C++20) |
| (since C++11) |
| (since C++17) |
| (since C++20) |
| (since C++20) |
| (since C++23) |
| (since C++17) |
| (since C++11) |
| (since C++11) |
| (since C++20) |
static_cast
,const_cast
,reinterpret_cast
, ordynamic_cast
, introduce the type-id.(since C++20) |
(since C++17) | |
(since C++20) |
static_cast
,const_cast
,reinterpret_cast
, ordynamic_cast
, indicate the end of type-id.(since C++20) |
(since C++17) | |
(since C++20) |
| (since C++11) |
| (since C++17) |
| (since C++23) |
| (since C++11) |
| (since C++11) |
| (since C++26) |
new
ordelete
expression, to indicate that only global allocation or deallocation functions are looked up
| (since C++11) |
| (since C++17) |
| (since C++11) |
| (since C++17) |
| (since C++20) |
<=>
| (since C++20) |
| (since C++11) |
Alternative representations | alternative spellings for certain operators[edit] |
C documentation forPunctuation |