Version.opCmp

Compares two dsdl2.Versions from chronology

struct Version
const
int
opCmp

Examples

assert(dsdl2.Version(2, 0, 0) == dsdl2.Version(2, 0, 0));
assert(dsdl2.Version(2, 0, 1) > dsdl2.Version(2, 0, 0));
assert(dsdl2.Version(2, 0, 1) < dsdl2.Version(2, 0, 2));
assert(dsdl2.Version(2, 0, 2) >= dsdl2.Version(2, 0, 1));
assert(dsdl2.Version(2, 0, 2) <= dsdl2.Version(2, 0, 2));

Meta