Using input and output iterators
template<class In, class Out>
Out copy(In begin, In end, Out out)
{
while (begin != end)
*out++ = *begin++;
return out;
}
This function is part of the C++ standard library
Previous slide
Next slide
Back to first slide
View graphic version