Checking for Homogeneous Tuples

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 15 09:54:19 PDT 2015


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));




More information about the Digitalmars-d-learn mailing list