copy

The function copy is used to copy a range.

  template<class InputIterator, class OutputIterator>
  OutputIterator copy(InputIterator first, 
  InputIterator last,OutputIterator result);
  
Remarks

The position of the last copied element is returned.