Constraints
"İbrahim Gökhan
"İbrahim Gökhan
Wed May 9 08:04:51 PDT 2012
// implement foo's without constraints
//------------------------------------------------------------
void foo(Range)(Range r)
if (isInputRange!Range && !isForwardRange!Range)
{ }
void foo(Range)(Range r)
if (isForwardRange!Range && !isBidirectionalRange!Range &&
!isRandomAccessRange!Range)
{ }
void foo(Range)(Range r)
if (isBidirectionalRange!Range && !isRandomAccessRange!Range)
{ }
void foo(Range)(Range r)
if (isRandomAccessRange!Range)
{ }
More information about the Digitalmars-d
mailing list