Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../../cpp/language/punctuators.html below:
Punctuation - cppreference.com
These are the punctuation symbols in C++. The meaning of each symbol is detailed in the linked pages.
[edit] Preprocessing operators
Preprocessing operators are recognized by preprocessors.
[edit] # (including %:)
[edit] ##(including %:%:)
[edit] Single-character operators and punctuators [edit] { and } (including <% and %>)
-
[edit] [ and ] (including <: and :>)
[edit] ( and )
-
-
-
- In a handler, delimit the parameter declaration.
- In a function-like macro definition, delimit the macro parameters.
- In a function-like macro invocation, delimit the macro arguments or prevent commas from being interpreted as argument separators.
- Part of a
defined
, __has_include
(since C++17), __has_cpp_attribute
(since C++20) preprocessing operator.
[edit] ;
-
[edit] :
[edit] ?
[edit] .
[edit] ~ (including compl)
[edit] ! (including not)
[edit] +
[edit] -
[edit] *
- Part of *this in a lambda capture list, to capture the current object by copy.
(since C++17) [edit] /
[edit] %
[edit] ^ (including xor)
[edit] & (including bitand)
[edit] | (including bitor)
[edit] =
[edit] <
-
-
[edit] >
-
-
[edit] ,
-
-
(since C++11) [edit] Multi-character operators and punctuators [edit] ...
- In the parameter list of a function declaratoror lambda expression(since C++11)or user-defined deduction guide(since C++17), signify a variadic function.
- In a handler, signify catch-all handler.
[edit] ::
- Scope resolution operator in
-
[edit] .*
[edit] ->
[edit] ->*
[edit] +=
[edit] -=
[edit] *=
[edit] /=
[edit] %=
[edit] ^= (including xor_eq)
[edit] &= (including and_eq)
[edit] |= (including or_eq)
[edit] ==
[edit] != (including not_eq)
[edit] <=
[edit] >=
[edit] && (including and)
[edit] || (including or)
[edit] <<
[edit] >>
[edit] <<=
[edit] >>=
[edit] ++
[edit] --
[edit] References
- C++23 standard (ISO/IEC 14882:2024):
-
- 5.12 Operators and punctuators [lex.operators]
- C++20 standard (ISO/IEC 14882:2020):
-
- 5.12 Operators and punctuators [lex.operators]
- C++17 standard (ISO/IEC 14882:2017):
-
- 5.12 Operators and punctuators [lex.operators]
- C++14 standard (ISO/IEC 14882:2014):
-
- 2.13 Operators and punctuators [lex.operators]
- C++11 standard (ISO/IEC 14882:2011):
-
- 2.13 Operators and punctuators [lex.operators]
- C++03 standard (ISO/IEC 14882:2003):
-
- 2.12 Operators and punctuators [lex.operators]
- C++98 standard (ISO/IEC 14882:1998):
-
- 2.12 Operators and punctuators [lex.operators]
[edit] See also
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4