cpp: C++ Named Operators
1
1 3.7.4 C++ Named Operators
1 -------------------------
1
1 In C++, there are eleven keywords which are simply alternate spellings
1 of operators normally written with punctuation. These keywords are
1 treated as such even in the preprocessor. They function as operators in
1 '#if', and they cannot be defined as macros or poisoned. In C, you can
1 request that those keywords take their C++ meaning by including
1 'iso646.h'. That header defines each one as a normal object-like macro
1 expanding to the appropriate punctuator.
1
1 These are the named operators and their corresponding punctuators:
1
1 Named Operator Punctuator
1 'and' '&&'
1 'and_eq' '&='
1 'bitand' '&'
1 'bitor' '|'
1 'compl' '~'
1 'not' '!'
1 'not_eq' '!='
1 'or' '||'
1 'or_eq' '|='
1 'xor' '^'
1 'xor_eq' '^='
1