stl:algorithm:reverse_copy

C++ Reference

reverse_copy

Syntax:

    #include <algorithm>
    iterator reverse_copy( iterator start, iterator end, 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