The C++ standard defines several alternative tokens for operators which may contain characters that do not exist on some keyboards. Most compilers only support these keywords through command line switches or extra header files (e.g. <ciso646>):
Alternative | Primary |
---|---|
and | && |
and_eq | &= |
bitand | & |
bitor | | |
compl | ~ |
not | ! |
not_eq | != |
or | || |
or_eq | |= |
xor | ^ |
xor_eq | ^= |