I\'m trying to implement some STL-style sorting algorithms. The prototype for std::sort looks something like this (from cplusplus.com):
std::sort
template
Check out the base() method of reverse_iterator.