Table 1: Output Iterator Properties
Expression | Result Type | Meaning | Notes |
---|---|---|---|
X(a) | X | constructs a copy of a | destructor is visible *X(a) has same effect as *a = t |
X u(a) X u = a |
X& | u is a copy of a | - |
r = a | X& | assigns a to r | result: *r = t has same effect as *a = t |
*a = t | void | store new element in sequence | - |
++r | X& | point to next element | &r = = &++r |
r++ | convertible to const X& |
{X tmp = r; ++r; return tmp;} |
- |
*r++ = t | void | - | - |
Notes: X is iterator type, a has type X, r has type X&
is element type, t has type T