Wiki

Clone wiki

pool-spec / Operators

Operators

Precedence

OperatorDescriptionAssociativity
::Scope resolutionLeft-to-right
++ --Suffix/postfix increment and decrement
[]Array subscript
.Element selection
++ --Prefix increment and decrementRight-to-left
+ -Unary plus and minus
! ~Logical NOT and bitwise NOT
*Indirection (dereference)
&Address-of
* / %Multiplication, division, and remainder
+ -Addition and subtraction.
<< >>Bitwise left shift and right shift
& ^ |Bitwise math operations.
< <= > >=Relational operators.
== !=For relational = and ≠ respectively
&& ||Logical operators.
=Direct assignment
+= −= *= /= %=

<<= >>= &= ^= |= | Assignment by sum and difference | |

,Tuple separator Left-to-right

Updated