cpp:operators

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cpp:operators [2017/04/10 03:56]
gthanos
cpp:operators [2017/04/10 04:47]
gthanos
Line 5: Line 5:
 ^  Level    Precedence group    Operator  ^   Description  ^  Grouping  ^ ^  Level    Precedence group    Operator  ^   Description  ^  Grouping  ^
 |  1  |  Scope  | :: | scope qualifier  |  Left-to-right  | |  1  |  Scope  | :: | scope qualifier  |  Left-to-right  |
-|  2  |  Postfix (unary)  | ++ --  |  postfix increment / decrement  |  Left-to-right  |+|  2  |  Postfix (unary)  | ++ --  | postfix increment / decrement  |  Left-to-right  |
 | ::: | ::: | ()  | functional forms  | ::: | | ::: | ::: | ()  | functional forms  | ::: |
 | ::: | ::: | []  | subscript  | ::: | | ::: | ::: | []  | subscript  | ::: |
Line 20: Line 20:
 |  6  | Arithmetic: addition  | + -   | addition, subtraction   | Left-to-right  | |  6  | Arithmetic: addition  | + -   | addition, subtraction   | Left-to-right  |
 |  7  | Bitwise shift   | << >>   | shift left, shift right   | Left-to-right  | |  7  | Bitwise shift   | << >>   | shift left, shift right   | Left-to-right  |
-|  8  | Relational   | < > <= >=   | comparison operators   | Left-to-right  |+|  8  | Relational   %%< > <= >=%%  | comparison operators   | Left-to-right  |
 |  9  | Equality   | == !=   | equality / inequality   | Left-to-right  | |  9  | Equality   | == !=   | equality / inequality   | Left-to-right  |
 | 10  | And   | &   | bitwise AND   | Left-to-right  | | 10  | And   | &   | bitwise AND   | Left-to-right  |
-| 11  | Exclusive or   | ^   | bitwise XOR   | Left-to-right +| 11  | Exclusive or   %%^%%   | bitwise XOR   | Left-to-right 
-| 12  | Inclusive or   | %%|%%  |  bitwise OR   | Left-to-right +| 12  | Inclusive or   | %%|%%  | bitwise OR   | Left-to-right 
-| 13  | Conjunction    | &&  logical AND  |  Left-to-right |+| 13  | Conjunction    | &&  | logical AND  |  Left-to-right |
 | 14  | Disjunction    | %%||%%  | logical OR   | Left-to-right  | | 14  | Disjunction    | %%||%%  | logical OR   | Left-to-right  |
-| 15  | Assignment-level expressions   | = *= /= %= += -= >>= <<= &= ^= %%|%%|assignment / compound assignment  | Right-to-left +| 15  | Assignment-level expressions   %%= *= /= %= += -= >>= <<= &= ^= |=%% | assignment / compound assignment  | Right-to-left 
-| ::: | ::: | ?:    conditional operator | ::: |+| ::: | ::: | ?:   | conditional operator | ::: |
 |16 | Sequencing   | ,   | comma separator   | Left-to-right  | |16 | Sequencing   | ,   | comma separator   | Left-to-right  |
  
cpp/operators.txt · Last modified: 2017/04/11 05:19 (external edit)