Smallest

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

Members

Aliases

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

Parameters

Args

Type list.

Return Value

The smallest type.

Examples

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

See Also

$(D_PSYMBOL Largest).

Meta