max

fnauto max(T...)(T args) if (T.length >= 2 && !is(CommonType!T == void))

Iterates the passed arguments and returns the maximum value.

Parameters

argsThe values to select the maximum from. At least two arguments must be passed, and they must be comparable with `<`.

Returns

The maximum of the passed-in values. The type of the returned value is

the type among the passed arguments that is able to store the largest value. If at least one of the arguments is NaN, the result is an unspecified value. See maxElement for examples on how to cope with NaNs.

See Also

fnT max(T, U)(T a, U b) if (is(T == U) && is(typeof(a < b)))

ditto