How can I check to see if template type is an array?

Tim tim.oliver at tutanota.com
Tue Jan 19 22:26:52 UTC 2021


Hi all,

I need to be able to check in a template whether the type given 
is an array type so that I can do some different logic. How can I 
do this? I would have thought that if(is(T == [])) would work, 
but no.


Thanks in advance


More information about the Digitalmars-d-learn mailing list