\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.8 - Number Types

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
List of all members
CGAL::Max< T, Less > Class Template Reference
Utilities

`#include <CGAL/utils_classes.h>`

## Definition

The function object class `Max` 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.

Is Model Of:
  `AdaptableFunctor`

## Creation
| Max ()
| default constructor.
| Max (Less c)
| The constructed object will use `c` to compare the arguments.

## Operations
T | operator() (const T &x, const T &y)
| returns the larger of `x` and `y`, with respect to the order induced by `Less`.