allSameType

Determines whether all Types are the same.

If Types is empty, returns $(D_KEYWORD true).

Members

Variables

allSameType
enum bool allSameType;
Undocumented in source.
allSameType
enum bool allSameType;
Undocumented in source.

Parameters

Types

Type sequence.

Return Value

$(D_KEYWORD true) if all Types are the same, $(D_KEYWORD false) otherwise.

Examples

static assert(allSameType!());
static assert(allSameType!int);
static assert(allSameType!(int, int, int));
static assert(!allSameType!(int, uint, int));
static assert(!allSameType!(int, uint, short));

Meta