Template Function ADS::min

Function Documentation

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

min(): the minimum of a vector that is not empty, n - 1 comparisons

Pre:

A is not empty