How to work with an "arbitrary input range"?

Simen kjaeraas simen.kjaras at gmail.com
Thu Oct 21 16:56:48 PDT 2010


Adam D. Ruppe <destructionator at gmail.com> wrote:

[snip]
> Anyway, what's the right thing to do here?

I'd say:

void fun( T )( T t ) if ( isInputRange!T && is( ElementType!T == dchar ) )  
{}

-- 
Simen


More information about the Digitalmars-d mailing list