February 01, 1996
C++: Iterators
February 1996/Standard C/C++: Iterators/Table 1
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
Previous Page |
1
|
2
|
3
|
4
|
5
|
6
Next Page