next up previous contents
Next: About this document ... Up: c++_coding_guidelines Previous: A. Indentation in Selected   Contents


B. Operator Precedence Order Summary

Name Associativity Operators
Scope resolution l $\rightarrow$ r ::
Primary l $\rightarrow$ r () [] . -> dynamic_cast typeid
Unary r $\rightarrow$ l ++ - + - ! ~ & * (type_name) sizeof new delete
Member selection l $\rightarrow$ r .* ->*
Multiplicative l $\rightarrow$ r * / %
Additive l $\rightarrow$ r + -
Bitwise shift l $\rightarrow$ r « »
Relational l $\rightarrow$ r < > <= >=
Equality l $\rightarrow$ r == !=
Bitwise AND l $\rightarrow$ r &
Bitwise XOR l $\rightarrow$ r ^
Bitwise OR l $\rightarrow$ r |
Logical AND l $\rightarrow$ r &&
Logical OR l $\rightarrow$ r ||
Conditional r $\rightarrow$ l ? :
Assignment r $\rightarrow$ l = += -= *= /= «= »= %= &= ^= |=
Throw exception l $\rightarrow$ r throw
Comma l $\rightarrow$ r ,


next up previous contents
Next: About this document ... Up: c++_coding_guidelines Previous: A. Indentation in Selected   Contents
Jari Häkkinen 2016-06-13