Table of Contents
Previous Section Next Section

reverse and reverse_copy

template <class BiIter>    void reverse(BiIter start, BiIter end);
template <class BiIter, class OutIter>
    OutIter reverse_copy(BiIter start, BiIter end, OutIter result);

The reverse( ) algorithm reverses the order of the range specified by start and end.

The reverse_copy( ) algorithm copies in reverse order the range specified by start and end and stores the result in result. It returns an iterator to the end of result.


Table of Contents
Previous Section Next Section