Largest

Finds the type with the largest size in the Args list. If several types have the same type, the leftmost is returned.

Members

Aliases

Largest
alias Largest = Args[0]
Undocumented in source.
Largest
alias Largest = Largest!(Args[1..$])
Undocumented in source.
Largest
alias Largest = Args[0]
Undocumented in source.

Parameters

Args

Type list.

Return Value

The largest type.

Examples

static assert(is(Largest!(int, short, uint) == int));
static assert(is(Largest!(short) == short));
static assert(is(Largest!(ubyte[8], ubyte[5]) == ubyte[8]));
static assert(!is(Largest!(short, 5)));

See Also

$(D_PSYMBOL Smallest).

Meta