Create constraint for each parameter in template arg pack

Andrey saasecondbox at yandex.ru
Tue Aug 28 12:28:19 UTC 2018


Hello,
Let we have two variadic templates:
> template Qwerty(Values...) {}
> template Qaz(alias type, Data...) {}

Now I want to add a constraint to "Qwerty" so that each type in 
"Values" pack must be a "Qaz" template. I don't care about values 
of "type" or "Data" in "Qaz".
How to do it in D?


More information about the Digitalmars-d-learn mailing list