SYNOPSIS
template <class InputIterator, class OutputIterator>
OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result);
LIBRARY
#include <>
DESCRIPTION
Copy range of elements
Copies the elements in the range [first,last) into the range beginning at result.
The function returns an iterator to the end of the destination range (which points to the element following the last element copied).
정해진 크기의 요소들을 복사한다.
Parameters
first : 시작 주소
end : 끝 주소
result : 복사할 공간의 시작주소
example
copy(시작 지점, 끝나는 지점, 복사 될 시작지점)
array[10]을 array_copy[10]에 복사하고자한다면
copy(array, array+10, array_copy);
copy(&array[0][0], &array[0][0]+100, &array_copy[0][0]);
copy(v.begin(), v.end(), v_copy.begin());