A possible enhancement related to is()

bearophile bearophileHUGS at lycos.com
Wed Jan 29 06:26:22 PST 2014


Jakob Ovrum:

> We can already do this, but you have to omit the `Unused` alias 
> (a semi-recent enhancement allows for that):
>
> ---
> import std.traits : Unqual;
>
> struct Tuple(Args...) {}
>
> enum isTuple(T) = is(Unqual!T : Tuple!Types, Types...);

Thank you.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list