Template Function ADS::cocktailShakerSort

Function Documentation

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

the bubble sort with passes in both directions

Post:

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