| Name | Expression | Return type |
|---|---|---|
| Preincrement | ++i | X& |
| Postincrement | (void)i++ | |
| Postincrement and dereference | *i++ | T |
| Name | Expression | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
| Dereference | *t | |||
| Preincrement | ++i | |||
| Postincrement | (void)i++ | Equivalent to | ||
| Postincrement and dereference | *i++ | Equivalent to |
All operations are amortized constant time.
• istream_iterator
[1]
[2] Every iterator in a valid range
[3] After executing
[4] It is not guaranteed that it is possible to pass through the same input iterator twice.
Output Iterator, Iterator overview
Output Iterator
Category: iterators
Component type: concept
An Output Iterator is a type that provides a mechanism for storing (but not necessarily accessing) a sequence of values. Output Iterators are in some sense the converse of Input Iterators, but they have a far more restrictive interface: they do not necessarily support member access or equality, and they do not necessarily have either an associated distance type or even a value type [1]. Intuitively, one picture of an Output Iterator is a tape: you can write a value to the current location and you can advance to the next location, but you cannot read values and you cannot back up or rewind.
Assignable, DefaultConstructible
None. [1]
X A type that is a model of Output Iterator
x, y Object of type
If
