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

Function Documentation

template<class T, class C = std::less<>>
void ADS::bubbleSort(std::vector<T> &A, C less = C())

the bubble sort, each pass ending at the last swap of the previous one

Post:

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