default (1) | template <class T> const T& min (const T& a, const T& b); |
---|---|
custom (2) | template <class T, class Compare> const T& min (const T& a, const T& b, Compare comp); |
default (1) | template <class T> const T& min (const T& a, const T& b); |
---|---|
custom (2) | template <class T, class Compare> const T& min (const T& a, const T& b, Compare comp); |
initializer list (3) | template <class T> T min (initializer_list<T> il);template <class T, class Compare> T min (initializer_list<T> il, Compare comp); |
default (1) | template <class T> constexpr const T& min (const T& a, const T& b); |
---|---|
custom (2) | template <class T, class Compare> constexpr const T& min (const T& a, const T& b, Compare comp); |
initializer list (3) | template <class T> constexpr T min (initializer_list<T> il);template <class T, class Compare> constexpr T min (initializer_list<T> il, Compare comp); |
operator<
(or comp, if provided) to compare the values.
|
|
bool
. The value returned indicates whether the element passed as first argument is considered less than the second.operator<
.
|
|
min(1,2)==1 min(2,1)==1 min('a','z')==a min(3.14,2.72)==2.72 |