OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result) | Function |
templateOutputIterator copy(InputIterator first, InputIterator last, OutputIterator result);
copy copies elements. For each non-negative integer n<(last - first), *(result+n)=*(first+n) is performed. copy returns result+(last-first). Exactly last-first assignments are done. The result of copy is undefined if result is in the range [first, last).
BidirectionalIterator2 copy_backward (BidirectionalIterator1 first, BidirectionalIterator1 last, BidirectionalIterator2 result) | Function |
templateBidirectionalIterator2 copy_backward(BidirectionalIterator1 first, BidirectionalIterator1 last, BidirectionalIterator2 result);
copy_backward copies elements in the range [first, last) into the range [result - (last - first), result) starting from last - 1 and proceeding to first. It should be used instead of copy when last is in the range [result - (last - first), result). For each positive integer n <= (last - first), *(result - n) = *(last - n) is performed. copy_backward returns result - (last - first). Exactly last - first assignments are done. The result of copy_backward is undefined if result is in the range [first, last).
|
|