Valid Operators and punctuators in C++
| Operators and Punctuators | ||||||||
|---|---|---|---|---|---|---|---|---|
| { | } | [ | ] | # | ## | ( | ) | |
| <: | :> | <% | %> | %: | %:%: | ; | : | ... |
| new | delete | ? | :: | . | .* | + | - | * |
| / | % | ^ | & | | | ~ | ! | = | > |
| > | += | -= | *= | /= | %= | ^= | &= | |= |
| << | >> | >>= | <<= | == | != | <= | >= | && |
| || | ++ | -- | , | ->* | -> | and | and_eq | bitand |
| bitor | compl | not | not_eq | or | or_eq | xor | xor_eq | |
