I\'m trying to convert my implementation of quicksort into a template that can be used with other containers besides a vector.
Originally I used indexes to find the
std::distance can measure the distance between two iterators as efficiently as possible.
std::advance can increment an iterator as efficiently as possible.
I still wouldn't want to quicksort a linked list, though :)