Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
An iterator.
//From http://www.richelbilderbeek.nl/CppCoutVector.htm
void CoutVector(const std::vector<T>& v)
{
std::copy(v.begin(),v.end(),std::ostream_iterator<T>(std::cout,"\n"));
}
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.