C Programming on the IBM PC (C Programmers Reference Guide Series)

max

template <class T>    const T &max(const T &i, const T &j);template <class T, class Comp>    const T &max(const T &i, const T &j, Comp cmpfn);

The max( ) algorithm returns the maximum of two values.

The second form allows you to specify a comparison function that determines when one element is less than another.

Категории