Element.opCmp

Compares two Elements

You should rarely need to call this function. It exists so that Elements can be used as associative array keys.

class Element
override @safe const
int
opCmp
(
scope const Object o
)

Examples

Element e1,e2;
if (e1 < e2) { }

Meta

Suggestion Box / Bug Report