[lex.digraph] (original) (raw)

5 Lexical conventions [lex]

5.5 Alternative tokens [lex.digraph]

Alternative token representations are provided for some operators and punctuators.11

In all respects of the language, each alternative token behaves the same, respectively, as its primary token, except for its spelling.12

The set of alternative tokens is defined in Table 1.

Table 1: Alternative tokens [tab:lex.digraph]

Alternative Primary Alternative Primary Alternative Primary
<% { and && and_­eq &=
%> } bitor | or_­eq |=
<: [ or | xor_­eq
:> ] xor ^ not !
%: # compl ~ not_­eq !=
%:%: ## bitand &