Checking for Homogeneous Tuples
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 15 10:41:05 PDT 2015
On Tuesday, 15 September 2015 at 16:54:22 UTC, Nordlöw wrote:
> How do I check that all the elements of a std.typecons.Tuple
> all fulfil a specific predicate, in my case all have a specific
> type:
>
> Something like
>
> import std.typecons : isTuple;
> enum isTupleOf(T, E) = isTuple!T && is(MAGIC(T, E));
I made a pull request for this a long time ago but it was
rejected.
https://github.com/D-Programming-Language/phobos/pull/1672
More information about the Digitalmars-d-learn
mailing list