isTypeTuple

Check whether the tuple T is a type tuple. A type tuple only contains types.

template isTypeTuple (
T...
) {
enum bool isTypeTuple;
enum bool isTypeTuple;
enum bool isTypeTuple;
}

Examples

static assert(isTypeTuple!(int, float, string));
static assert(!isTypeTuple!(1, 2.0, "a"));
static assert(!isTypeTuple!(1, double, string));

See Also

Meta

Suggestion Box / Bug Report