reverse

Syntax:

    #include <algorithm>
    void reverse( bidirectional_iterator start, bidirectional_iterator end );

The reverse() algorithm reverses the order of elements in the range [start,end).

Related Topics: reverse_copy