Check if tuple contains value at compile time

Diggory diggsey at googlemail.com
Sat May 4 17:14:01 PDT 2013


On Sunday, 5 May 2013 at 00:10:27 UTC, Simen Kjaeraas wrote:
> On 2013-05-05, 01:42, Diggory wrote:
>
>> I'm trying to test using a "static if" statement if a tuple of 
>> strings contains a particular string. What's the easiest/best 
>> way to do this?
>
> http://dlang.org/phobos/std_typetuple#.staticIndexOf

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


More information about the Digitalmars-d-learn mailing list