GenericTuple

Creates a generic tuple out of a sequence of zero or more types, expressions, or aliases.

alias GenericTuple(Args...) = Args

Examples

t
{
	alias MyTemplate(T) = T[];

	alias MyTuple = GenericTuple!(int, 5, "a string", MyTemplate);

	MyTuple[0] myVar = MyTuple[1]; // same as `int myVar = 5;`
	auto str = MyTuple[2]; // same as `auto str = "a string";`

	alias Template = MyTuple[3];
	static assert(is(Template!int == int[])

Meta