The function min is used to determine the lesser of two objects by value or based upon a comparison.
template<class T> const T& min (const T& a, const T& b); template<class T, class Compare> const T& min(const T& a, const T& b, Compare comp);
The lesser of the two objects is returned.