User Tools

Site Tools


cpp:operators

Differences

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

Link to this comparison view

Next revision
Previous revision
cpp:operators [2017/04/10 03:42] – created gthanoscpp:operators [2024/04/24 09:51] (current) gthanos
Line 4: Line 4:
  
 ^  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  | ::: | 
-| ::: | ::: | . -> | member access | ::: | +| ::: | ::: | ''. ->'' | member access | ::: | 
-|  3  | Prefix (unary) | ++ --  | prefix increment / decrement | Right-to-left | +|  3  | Prefix (unary) | ''++ --''  | prefix increment / decrement | Right-to-left | 
-| ::: | ::: | ~ ! | bitwise NOT / logical NOT | ::: | +| ::: | ::: | ''~ !'' | bitwise NOT / logical NOT | ::: | 
-| ::: | ::: | + - | unary prefix | ::: | +| ::: | ::: | ''+ -'' | unary prefix | ::: | 
-| ::: | ::: | & * | reference / dereference | ::: | +| ::: | ::: | ''& *'' | reference / dereference | ::: | 
-| ::: | ::: | new delete   | allocation / deallocation  | ::: | +| ::: | ::: | ''new delete''   | allocation / deallocation  | ::: | 
-| ::: | ::: | sizeof   | parameter pack  | ::: | +| ::: | ::: | ''sizeof''   | parameter pack  | ::: | 
-(type)    C-style type-casting +| ::: | ::: | ''(type)''   C-style type-casting  | ::: | 
-   Pointer-to-member    .* ->   access pointer    Left-to-right +|   Pointer-to-member  | ''%%.*  ->*%%'' access pointer   | Left-to-right  | 
-   Arithmetic: scaling    * / %    multiply, divide, modulo    Left-to-right +|   Arithmetic: scaling   | ''* / %''   multiply, divide, modulo   | Left-to-right  | 
-   Arithmetic: addition    + -    addition, subtraction    Left-to-right +|   Arithmetic: addition  | ''+ -''   addition, subtraction   | Left-to-right  | 
-   Bitwise shift    << >>    shift left, shift right    Left-to-right +|   Bitwise shift   | ''%%<< >>%%''   shift left, shift right   | Left-to-right  | 
-   Relational    < > <= >=    comparison operators    Left-to-right +|   Relational   | ''%%< > <= >=%%'' comparison operators   | Left-to-right  | 
-   Equality    == !=    equality / inequality    Left-to-right +|   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    = *= /= %= += -= +15  Assignment-level expressions   | ''%%= *= /= %= += -= >>= <<= &= ^= |=%%''assignment / compound assignment  Right-to-left  | 
->>= <<= &= ^= |=    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.1491795738.txt.gz · Last modified: 2017/04/10 02:42 (external edit)