Changes between Version 10 and Version 11 of Guidelines/Naming/Operators


Ignore:
Timestamp:
Apr 7, 2011, 5:16:29 AM (12 years ago)
Author:
bronf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/Naming/Operators

    v10 v11  
    8383In this case all the `bit` prefixes could be replaced by `bitwise`, so it would be consistent with all proto names referring to bitwise operations. Note that "20.8.7, bitwise operations" are all part of the new upcoming standard and could still be changed.
    8484
    85 ||=operator =|  |=trait name =||
    86 ||=`+` =|       |=`can_add<T1, T2>` =||
    87 ||=`-` =|       |=`can_subtract<T1, T2>` =||
    88 ||=`*` =|       |=`can_multiply<T1, T2>` =||
    89 ||=`/` =|       |=`can_divide<T1, T2>` =||
    90 ||=`%` =|       |=`can_modulate<T1, T2>` =||
    91 ||=`+=` =|      |=`can_add_assign<T1, T2>` =||
    92 ||=`-=` =|      |=`can_subtract_assign<T1, T2>` =||
    93 ||=`*=` =|      |=`can_multiply_assign<T1, T2>` =||
    94 ||=`/=` =|      |=`can_divide_assign<T1, T2>` =||
    95 ||=`%=` =|      |=`can_modulate_assign<T1, T2>` =||
    96 ||=`&` =|       |=`can_bitwise_and<T1, T2>` =||
    97 ||=`|` =|       |=`can_bitwise_or<T1, T2>` =||
    98 ||=`^` =|       |=`can_bitwise_xor<T1, T2>` =||
    99 ||=`&=` =|      |=`can_bitwise_and_assign<T1, T2>` =||
    100 ||=`|=` =|      |=`can_bitwise_or_assign<T1, T2>` =||
    101 ||=`^=` =|      |=`can_bitwise_xor_assign<T1, T2>` =||
    102 ||=`<<` =|      |=`can_left_shift<T1, T2>` =||
    103 ||=`>>` =|      |=`can_right_shift<T1, T2>` =||
    104 ||=`<<=` =|     |=`can_left_shift_assign<T1, T2>` =||
    105 ||=`>>=` =|     |=`can_right_shift_assign<T1, T2>` =||
    106 ||=`==` =|      |=`can_call_equal_to<T1, T2>` =||
    107 ||=`!=` =|      |=`can_call_not_equal_to<T1, T2>` =||
    108 ||=`<` =|       |=`can_call_less<T1, T2>` =||
    109 ||=`<=` =|      |=`can_call_less_equal<T1, T2>` =||
    110 ||=`>` =|       |=`can_call_greater<T1, T2>` =||
    111 ||=`>=` =|      |=`can_call_greater_equal<T1, T2>` =||
    112 ||=`&&` =|      |=`can_logical_and<T1, T2>` =||
    113 ||=`||` =|      |=`can_logical_or<T1, T2>` =||
    114 ||=`!` =|       |=`can_logical_not<T>` =||
    115 ||=`+` =|       |=`can_unary_plus<T>` =||
    116 ||=`-` =|       |=`can_negate<T>` =||
    117 ||=`~` =|       |=`can_complement<T>` =||
    118 ||=`*` =|       |=`can_dereference<T>` =||
    119 ||=`++` =|      |=`can_pre_increase<T>` =||
    120 ||=`--` =|      |=`can_pre_decrease<T>` =||
    121 ||=`++` =|      |=`can_post_increase<T>` =||
    122 ||=`--` =|      |=`can_post_decrease<T>` =||
     85||=operator     ||=trait name =||
     86||=`+`  ||=`can_add<T1, T2>` =||
     87||=`-`  ||=`can_subtract<T1, T2>` =||
     88||=`*`  ||=`can_multiply<T1, T2>` =||
     89||=`/`  ||=`can_divide<T1, T2>` =||
     90||=`%`  ||=`can_modulate<T1, T2>` =||
     91||=`+=` ||=`can_add_assign<T1, T2>` =||
     92||=`-=` ||=`can_subtract_assign<T1, T2>` =||
     93||=`*=` ||=`can_multiply_assign<T1, T2>` =||
     94||=`/=` ||=`can_divide_assign<T1, T2>` =||
     95||=`%=` ||=`can_modulate_assign<T1, T2>` =||
     96||=`&`  ||=`can_bitwise_and<T1, T2>` =||
     97||=`|`  ||=`can_bitwise_or<T1, T2>` =||
     98||=`^`  ||=`can_bitwise_xor<T1, T2>` =||
     99||=`&=` ||=`can_bitwise_and_assign<T1, T2>` =||
     100||=`|=` ||=`can_bitwise_or_assign<T1, T2>` =||
     101||=`^=` ||=`can_bitwise_xor_assign<T1, T2>` =||
     102||=`<<` ||=`can_left_shift<T1, T2>` =||
     103||=`>>` ||=`can_right_shift<T1, T2>` =||
     104||=`<<=`        ||=`can_left_shift_assign<T1, T2>` =||
     105||=`>>=`        ||=`can_right_shift_assign<T1, T2>` =||
     106||=`==` ||=`can_call_equal_to<T1, T2>` =||
     107||=`!=` ||=`can_call_not_equal_to<T1, T2>` =||
     108||=`<`  ||=`can_call_less<T1, T2>` =||
     109||=`<=` ||=`can_call_less_equal<T1, T2>` =||
     110||=`>`  ||=`can_call_greater<T1, T2>` =||
     111||=`>=` ||=`can_call_greater_equal<T1, T2>` =||
     112||=`&&` ||=`can_logical_and<T1, T2>` =||
     113||=`||` ||=`can_logical_or<T1, T2>` =||
     114||=`!`  ||=`can_logical_not<T>` =||
     115||=`+`  ||=`can_unary_plus<T>` =||
     116||=`-`  ||=`can_negate<T>` =||
     117||=`~`  ||=`can_complement<T>` =||
     118||=`*`  ||=`can_dereference<T>` =||
     119||=`++` ||=`can_pre_increase<T>` =||
     120||=`--` ||=`can_pre_decrease<T>` =||
     121||=`++` ||=`can_post_increase<T>` =||
     122||=`--` ||=`can_post_decrease<T>` =||