The OpenD Programming Language

isInfinite

Returns true if R is an infinite input range. An infinite input range is an input range that has a statically-defined enumerated member called empty that is always false, for example:

struct MyInfiniteRange
{
    enum bool empty = false;
    ...
}
pragma(inline, true)
@optmath
template isInfinite (
R
) {
pragma(inline, true)
@optmath
static if(isInputRange!R && __traits(compiles, ))
enum bool isInfinite;
pragma(inline, true)
@optmath
static if(!(isInputRange!R && __traits(compiles, )))
enum bool isInfinite;
}

Meta