inserter function template — Creates an insert_iterator
template <typename Container, typename Iterator>
insert_iterator<Container>
inserter(Container& x, Iterator i);
The inserter
function
template constructs an insert_iterator
object for the container
x
to insert items starting at
position i
. Figure 13-22 illustrates a
simple use of the inserter
function.