Example
vector
V.push_back(3);
V.push_back(1);
V.push_back(4);
V.push_back(1);
V.push_back(5);
V.push_back(9);
copy(V.begin(), V.end(), ostream_iterator
// The output is "3 1 4 1 5 9".
vector
copy(V.begin(), new_end, ostream_iterator
// The output is "3 4 5 9".
Loading...