Instantiate

Instantiates the template T with Args.

alias Instantiate(alias T, Args...) = T!Args

Parameters

T

Template.

Args

Template parameters.

Return Value

Instantiated template.

Examples

template Template(T)
{
    alias Template = T;
}
alias Seq = AliasSeq!(Template, Template);

alias Instance1 = Instantiate!(Seq[0], int);
static assert(is(Instance1 == int));

alias Instance2 = Instantiate!(Seq[1], float);
static assert(is(Instance2 == float));

Meta