|
reverse_copyfunction template
<algorithm> template <class BidirectionalIterator, class OutputIterator> OutputIterator reverse_copy ( BidirectionalIterator first, BidirectionalIterator last, OutputIterator result ); Copy range reversed Copies the values of the elements in the range [first,last) to the range positions beginning at result, but reversing its order.The behavior of this function template is equivalent to:
Parameters
Return valueAn output iterator pointing to the end of the copied range.Example
Output:
ComplexityLinear: Performs as many assignment operations as the distance between first and last.See also
|