
please wait
Output Iterators can be thought of as having complementary functionality to input iterators; they write rather than read elements. Output iterators must provide: + Prefix and postfix increment (++) to advance the iterator + Dereference (*) which may appear only as the left-hand side of an assignment (Assigning to a dereferenced output iterator writes tot he underlying element). We may assign to a given value of an output iterator only once. Like input iterators, output iterators may be used only for single-pass algorithms. |
oitr
twice and it was ok.
|
|
Forward iterators support all the operations of both input iterators and output iterators. Moreover, they can read or write the same element multiple times. |
|
|