Looping over Template Types ... possible?

james.p.leblanc james.p.leblanc at gmail.com
Sat Aug 14 20:25:27 UTC 2021


On Saturday, 14 August 2021 at 20:20:01 UTC, Stefan Koch wrote:

> On Saturday, 14 August 2021 at 20:07:21 UTC, james.p.leblanc 
> wrote:
mes
>
> it is possible
>
> look for `AliasSeq`
> in `std.meta`
>
> foreach(T; AliasSeq!(float, double))
> {
>   ...
> }

Stefan,

Thanks very much for your help here ... I had not
understood that AliasSeq worked in this manner.

I definitely need read the AliasSeq and try to understand
how to use this.

Best Regards,
James



More information about the Digitalmars-d-learn mailing list