Template Function ADS::powerSort

Function Documentation

template<class T, class C = std::less<>>
void ADS::powerSort(std::vector<T> &A, C less = C(), std::size_t *runs = nullptr)

Powersort; the number of runs found goes to *runs, if given.

Post:

A is sorted, with the same items (an audit)