Check if tuple contains value at compile time

bearophile bearophileHUGS at lycos.com
Sat May 4 17:33:32 PDT 2013


Diggory:

> It's not a TypeTuple, it's a tuple of strings.

Then one simple way to do it is to convert it into an array of 
strings, and then use canFind:

[mytuple[]].canFind(needle)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list