min |
Return the minimum of two items.
Return the smaller of a
and b , or return a if a
and b are equal. The first version uses operator<
to perform the comparison, whereas the second version uses the binary function compare
.
#include <algorithm>
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 compare );
Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.