AliasSeq

Creates a sequence of zero or more aliases. This is most commonly used as template parameters or arguments.

alias AliasSeq(TList...) = TList

Examples

alias TL = AliasSeq!(int, double);

int foo(TL td)  // same as int foo(int, double);
{
    return td[0] + cast(int) td[1];
}
alias TL = AliasSeq!(int, double);

alias Types = AliasSeq!(TL, char);
static assert(is(Types == AliasSeq!(int, double, char)));
static char foo(size_t i, string str)
{
    return str[i];
}

alias vars = AliasSeq!(2, "dlang");

assert(foo(vars) == 'a');

Meta