allSameTypeRecursive

template allSameTypeRecursive (
V...
) {
enum allSameTypeRecursive;
enum allSameTypeRecursive;
enum allSameTypeRecursive;
}

Return Value

true iff all types T are the same.

Examples

static assert(allSameTypeRecursive!());
static assert(allSameTypeRecursive!(int));
static assert(allSameTypeRecursive!(int, int));
static assert(!allSameTypeRecursive!(int, double));
static assert(!allSameTypeRecursive!(int, int, double));
static assert(allSameTypeRecursive!(Tuple!(int, int, int).Types, int));

static assert(!allSameTypeRecursive!(int, const(int)));
static assert(!allSameTypeRecursive!(byte, const(int)));

Meta