| :: |
scope resolution operator |
highest precedence |
| . |
dot operator |
|
| -> |
member selection |
| [] | array indexing |
| () | function call |
| ++ | postfix increment operator |
| -- |
postfix decrement operator |
| typeid |
|
| dynamic_cast |
|
| static_cast |
|
| const_cast |
|
| reinterpret_cast |
|
| ++ |
prefix increment operator |
| -- |
prefix decrement operator |
| ! |
not |
| - |
unary minus |
| + |
unary plus |
| * |
dereference |
| & |
address of |
| new |
|
| delete |
|
| delete[] |
|
| sizeof |
|
| .* |
member dereference |
| ->* |
member dereference |
| * |
multiplication |
| / |
division |
| % |
reminder |
| + |
addition |
| - |
subtraction |
| << |
insertion operator (output), bitwise left shift |
| >> |
extraction operator (input), bitwise right shift |
| < |
less than |
| <= |
less or equal to |
| > |
greater than |
| >= |
greater or equal to |
| == |
equal |
| != |
not equal |
| && |
logical and |
| || |
logical or |
| ?: |
conditional operator |
| = |
assignment |
| += |
add and assign |
| -= |
subtract and assign |
| *= |
multiply and assign |
| /= |
divide and assign |
| %= |
modulo and assign |
| <<= |
left shift and assign |
| >>= |
right shift and assign |
| &= |
bitwise AND and assign |
| |= |
bitwise OR and assign |
| ^= |
exclusive OR and assign |
| throw |
raising exception |
| , |
list operator |
lowest precedence |