std::copy (std::istream_iterator<string>(cin), // beginning of source
std::istream_iterator<string>(), // end of source
std::ostream_iterator<string>(cout,"\n")); // destination
how could I quit from it?
besides, if I want to copy partial data from std::ifstream
what should I do with the copy algorithm?
following code would copy all of the data into the container buffer
but I only need partial of it