Patterns for functions in template parameters

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 23 04:25:00 PDT 2014


Maybe, argument deduction?

template Foo(T: T[U], U)
{
     ...
}

Foo!(int[long])  // instantiates Foo with T set to int, U set to 
long


More information about the Digitalmars-d-learn mailing list