front_inserter function template — Creates a front_insert_iterator
template <typename Container>
front_insert_iterator<Container>
front_inserter(Container& x);
The front_inserter
function
template constructs a front_insert_iterator
object for the
container x
. Example 13-20 shows how to use
front_inserter
to read integers
from a file into a list in reverse order.