min

Iterates the passed arguments and returns the minimum value.

min
(
T...
)
()
if (
T.length >= 2
)

Return Value

Type: auto

The minimum of the passed-in values.

Examples

min is not defined for arguments of mixed signedness because of security reasons. Please unify type or use a Phobos analog.

int a = -10;
uint b = 10;
static assert(!is(typeof(min(a, b))));

Meta