Range.opCmp

Compares this instance with rhs. An empty range is considered to be < all non-empty ranges. Otherwise, the comparison always considers the range's minimum value before comparing the maximum value.

struct Range(T)
const
int
opCmp
(
const typeof(this) rhs
)

Parameters

rhs typeof(this)

instance to compare with this

Return Value

Type: int

a value less than 0 if this < rhs, a value greater than 0 if this > rhs or 0 if this == rhs.

Meta