basic_string.opCmp

int opCmp(scope const ref basic_string rhs) const pure nothrow @safe

Performs lexicographical comparison.

int opCmp(scope const T[] rhs) const pure nothrow @safe

ditto