...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
SignedInteger
x
, y
, z
a
, b
Name | Expression | Type |
---|---|---|
Conversion from int |
T(a) |
T |
Preincrement |
++x |
T & |
Predecrement |
--x |
T & |
Postincrement |
x++ |
T |
Postdecrement |
x-- |
T |
Sum |
x + y |
T |
Sum with int |
x + a |
T |
Sum-assignment |
x += y |
T & |
Sum-assignment with int |
x += a |
T & |
Difference |
x - y |
T |
Difference with int |
x - a |
T |
Product |
x * y |
T |
Product with int |
x * a |
T |
Product-assignment with int |
x *= a |
T & |
Product with int on left |
a * x |
T |
Quotient |
x / y |
T |
Quotient with int |
x / a |
T |
Right-shift |
x >> y |
T |
Right-shift with int |
x >> a |
T |
Right-shift-assignment with int |
x >>= a |
T & |
Less-than comparison |
x < y |
Convertible to bool |
Less-than comparison with int |
x < a |
Convertible to bool |
Less-than comparison with size_t |
x < boost::sample_value < std::size_t >() |
Convertible to bool |
Greater-than comparison |
x > y |
Convertible to bool |
Greater-than comparison with int |
x > a |
Convertible to bool |
Less-than-or-equal comparison |
x <= y |
Convertible to bool |
Less-than-or-equal comparison with int |
x <= a |
Convertible to bool |
Greater-than-or-equal comparison |
x >= y |
Convertible to bool |
Greater-than-or-equal comparison with int |
x >= a |
Convertible to bool |
Greater-than-or-equal comparison with int on left |
a >= x |
Convertible to bool |
Equality comparison |
x == y |
Convertible to bool |
Equality comparison with int |
x == a |
Convertible to bool |