basic_string.opCmp

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

Performs lexicographical comparison.

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

ditto