CGAL::Max<T,Less>

Definition

The function object class Max<T,Less> returns the larger of two values. The order is induced by the second template argument Less. The default value for Less is std::less.

Note that T must be a model of LessThanComparable in case std::less is used.

#include <CGAL/utils_classes.h>

Is Model for the Concepts

AdaptableFunctor

Creation

Max<T,Less> max;
default constructor.

Max<T,Less> max ( Less c);
The constructed object will use c to compare the arguments.

Operations

T operator() ( T x , T y ) returns the larger of x and y, with respect to the order induced by Less.