Rebind template

Engine Machine via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 20 15:11:40 PDT 2016


Is there a way to rebind the arguments of a template?

template foo(X)
{
    // X is like A!(a,b,c)
    Y = Rebind!(X,d,e,f);
    // Y is like A!(d,e,f);
}

foo(A!(a,b,c));

?


More information about the Digitalmars-d-learn mailing list