Checking for Homogeneous Tuples

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 15 10:22:49 PDT 2015


If it is a tuple of values too, you could just try to form an 
array out of it: `static if (__traits(compiles, [your_tuple]))`. 
But allSatisfy might be better.

For the predicate there, remember it needs to take a template 
argument.


More information about the Digitalmars-d-learn mailing list