Count template parameters of method

Andrey saasecondbox at
Sun Oct 11 06:53:59 UTC 2020


How to count a number of parameters in uninitialized template 

For example:
> struct Test
> {
>     void abc(int a, bool status, string text)() {}
> {

The method "" has three template paramenters.

I know that "TemplateArgsOf" exists but it is used only for 
INITIALIZED templates...

More information about the Digitalmars-d-learn mailing list