C Programming on the IBM PC (C Programmers Reference Guide Series)
|
|
min
template <class T> const T &min(const T &i, const T &j);template <class T, class Comp> const T &min(const T &i, const T &j, Comp cmpfn);
The min( ) algorithm returns the minimum of two values.
The second form allows you to specify a comparison function that determines when one element is less than another.
|
|