class std::insert_iterator< _Container >
Turns assignment into insertion.
These are output iterators, constructed from a container-of-T. Assigning a T to the iterator inserts it in the container at the iterator's position, rather than overwriting the value at that position.
(Sequences will actually insert a copy of the value before the iterator's position.)
Tip: Using the inserter function to create these iterators can save typing.
Definition at line 589 of file stl_iterator.h.
|__value||An instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>. |
- This iterator, for chained operations.
This kind of iterator maintains its own position in the container. Assigning a value to the iterator will insert the value into the container at the place before the iterator.
The position is maintained such that subsequent assignments will insert values immediately after one another. For example,
Definition at line 640 of file stl_iterator.h.