On Tuesday, 19 January 2021 at 22:26:52 UTC, Tim wrote:
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

You've almost got it. The correct syntax is `is(T == U[], U)`. You can read it as "there exists some type U such that T == U[]".

Reply via email to