| Front Page / Metafunctions / Miscellaneous / max |
Returns the larger of its two arguments.
#include <boost/mpl/min_max.hpp>
| Parameter | Requirement | Description |
|---|---|---|
| N1, N2 | Any type | Types to compare. |
For arbitrary types x and y:
typedef max<x,y>::type r;
| Return type: | A type. |
|---|---|
| Precondition: | less<x,y>::value is a well-formed integral constant expression. |
| Semantics: | Equivalent to typedef if_< less<x,y>,y,x >::type r; |
Constant time.