The OpenD Programming Language

Interval.empty

Whether the interval's length is 0, that is, whether begin == end.

struct Interval(TP)
@property const pure nothrow
bool
empty
()

Examples

assert(Interval!Date(Date(1996, 1, 2), Date(1996, 1, 2)).empty);
assert(!Interval!Date(Date(1996, 1, 2), Date(2012, 3, 1)).empty);

Meta