| Result | Operator | Description |
value = |
*it; |
Use dereference (*) op to get/set value. |
|
++it; |
Points to next element. Value after update. |
|
it++; |
Points to next element. Value before update. |
it1 = |
it2; |
Assignment |
b = |
it1 == it2; |
Equality comparison. |
b = |
it1 != it2; |
Inequality. |
|
--it; |
Predecrement. |
|
it--; |
Postdecrement. May be less efficient than predecrement. |
it += |
i; |
Increments it by i positions. |
it -= |
i; |
Decrements it by i positions. |
it1 = |
it2 + i; |
Increments it by i positions. |
it1 = |
it2 - i; |
Decrements it by i positions. |
value = |
it[i]; |
Returns reference to ith element after it. |
b = |
it1 < it2; |
Comparison. |
b = |
it1 <= it2; |
Comparison. |
b = |
it1 > it2; |
Comparison. |
b = |
it1 <= it2; |
Comparison. |