back_inserter function template — Creates a back_insert_iterator
template <typename Container>
back_insert_iterator<Container> back_inserter(Container& x);
The back_inserter
function
template constructs a back_insert_iterator
object for the
container x
. Example 13-18 shows how to use
back_inserter
to read integers
from a file into a vector.