reverse_copy

Syntax:

    #include <algorithm>
    output_iterator reverse_copy( bidirectional_iterator start, bidirectional_iterator end, output_iterator result );

The reverse_copy() algorithm copies the elements in the range [start,end) to result such that the elements in the new range are in reverse order.

The return value of the reverse_copy() function is an iterator the end of the new range.

Related Topics: reverse