wiki:Guidelines/Naming/Operators

Version 1 (modified by Joachim Faulhaber, 12 years ago) ( diff )

--

Operator Names

type_traits MUP std proto boost::operator
== equal_to equal_to = = equality_comparable
!= not_equal_to not_equal_to = =
< less less = = less_than_comparable
<= less_equal less_equal = =
> greater greater = =
>= greater_equal greater_equal = =
+ plus plus = = addable
- minus minus = = subtractable
* multiplies multiplies = = multipliable
/ divides divides = = dividable
% modulus modulus = = modable
+= plus_equal plus_assign *_assign
-= minus_equal minus_assign *_assign
*= multiplies_equal multiplies_assign *_assign
/= divides_equal divides_assign *_assign
%= modulus_equal modulus_assign *_assign
&& logical_and logical_and ?= =
|| logical_or logical_or ?= =
& bit_and bitwise_and ?= bitwise_* andable
| bit_or bitwise_or ?= bitwise_* orable
^ bit_xor bitwise_xor ?= bitwise_* xorable
<< left_shift left_shift shift_left left_shiftable
>> right_shift right_shift shift_right right_shiftable
&= bit_and_equal bitwise_and_assign ? bitwise_and_assign
|= bit_or_equal bitwise_or_assign ? bitwise_or_assign
^= bit_xor_equal bitwise_xor_assign ? bitwise_xor_assign
<<= left_shift_equal left_shift_assign shift_left_assign
>>= right_shift_equal right_shift_assign shift_right_assign
++ prefix_increment pre_increment advance pre_inc incrementable
-- prefix_decrement pre_decrement pre_dec decrementable
+ unary_plus unary_plus =
- unary_minus negate negate negate
! logical_not logical_not ? logical_not
~ complement complement compl complement
* dereference dereference dereference
++ postfix_increment post_increment post_inc
-- postfix_decrement post_decrement post_dec

Note: See TracWiki for help on using the wiki.