isTypeTuple

Determines whether Args contains only types.

enum bool isTypeTuple(Args...);

Return Value

$(D_KEYWORD true) if Args consists only of types, $(D_KEYWORD false) otherwise.

Examples

static assert(isTypeTuple!(int, uint, Object));
static assert(isTypeTuple!());
static assert(!isTypeTuple!(int, 8, Object));
static assert(!isTypeTuple!(5, 8, 2));

class C
{
}
enum E : bool
{
    t,
    f,
}
union U
{
}
static struct T()
{
}

static assert(isTypeTuple!C);
static assert(isTypeTuple!E);
static assert(isTypeTuple!U);
static assert(isTypeTuple!void);
static assert(isTypeTuple!int);
static assert(!isTypeTuple!T);
static assert(isTypeTuple!(T!()));
static assert(!isTypeTuple!5);
static assert(!isTypeTuple!(tanya.meta.trait));

Meta