Table of Contents
Previous Section Next Section

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.


Table of Contents
Previous Section Next Section