BasicInterval

Interval with zero-based, half-open coordinates Any other Interval struct (or class?) OK as long as it contains "start" and "end"

Members

Functions

opCmp
int opCmp(BasicInterval other)

override the <, <=, >, >= operators; we'll use compiler generated default opEqual

opCmp
T opCmp(T other)

override <, <=, >, >= to compare directly to int: compare only the start coordinate

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

end
T end;

zero-based half-open

start
T start;

zero-based half-open

Meta