:: | Scope Resolution | Left |
() [] -> . | | Left |
! ~ + (unary) - (unary) ++ –– & (unary) | Logical NOT; Bitwise NOT; Arithmetic sign; Increment; Decrement; AddressOf | Right |
* (unary) (typecast) static_cast | Pointer dereferencing; casting | Right |
const_cast dynamic_cast reinterpret_cast | Casting | Right |
sizeof new delete...typeid | | Right |
.* (unary) ->* | | Left |
* / % | Arithmetic | Left |
+ - | Arithmetic | Left |
<< >> | Bitwise shift | Left |
< <= > >= | Logical Comparison | Left |
== != | Logical Comparison | Left |
& | Bitwise logic | Left |
^ | Bitwise logic | Left |
| | Bitwise logic | Left |
&& | Boolean Logic | Left |
|| | Boolean Logic | Left |
?: | Conditional operator | Right |
= *= /= %= += -= | Assigment; Assignment shortcuts | Right |
&= ^= |= <<= >>= | Assignment shortcuts | Right |
, (comma) | Multiple statements | Left |