Template Function ADS::quickSort(std::vector<T>&, std::size_t, std::size_t, C)

Function Documentation

template<class T, class C = std::less<>>
void ADS::quickSort(std::vector<T> &A, std::size_t start, std::size_t end, C less = C())

QuickSort() of A[ start .

. end ], the book’s

Pre:

start > end or end < n

Post:

A[ start .. end ] is sorted