5
Lexical conventions
[lex]
5.12
Operators and punctuators
[lex.operators]
1
#
The lexical representation of C++ programs includes a number of preprocessing tokens that are used in the syntax of the preprocessor or are converted into tokens for operators and punctuators:
preprocessing-op-or-punc
:
preprocessing-operator
operator-or-punctuator
preprocessing-operator
:
one of
#
#
#
%
:
%
:
%
:
operator-or-punctuator
:
one of
{
}
[
]
(
)
<
:
:
>
<
%
%
>
;
:
.
.
.
?
::
.
.
*
-
>
-
>
*
~
!
+
-
*
/
%
^
&
|
=
+
=
-
=
*
=
/
=
%
=
^
=
&
=
|
=
=
=
!
=
<
>
<
=
>
=
<
=
>
&
&
|
|
<
<
>
>
<
<
=
>
>
=
+
+
-
-
,
and or xor not bitand bitor compl
and_eq or_eq xor_eq not_eq
Each
operator-or-punctuator
is converted to a single token in
translation phase 7
.