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

Tim tim.oliver at tutanota.com
Tue Jan 19 22:34:04 UTC 2021


On Tuesday, 19 January 2021 at 22:31:47 UTC, Paul Backus wrote:
> 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[]".

Thanks! Do I need to specify U in the template function?


More information about the Digitalmars-d-learn mailing list