Template Function ADS::listInsertionSort

Function Documentation

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

the list insertion sort; the moves of the items go to *moves, if given

Post:

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