Count template parameters of method

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


Hello,

How to count a number of parameters in uninitialized template 
method?

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

The method "Test.abc" 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