TypeNuple

ある型や値をN個並べたタプルを返します

template TypeNuple (
A...
) if (
A.length == 2 &&
is(typeof(A[1]) : size_t)
) {}

Examples

static assert(is(TypeNuple!(int, 2) == TypeTuple!(int, int)));
static assert(is(TypeNuple!(long, 3) == TypeTuple!(long, long, long)));

Meta