Lexicographic comparison of arrays (of chars)

Per Nordlöw per.nordlow at gmail.com
Wed Jan 22 08:44:15 UTC 2020


On Wednesday, 22 January 2020 at 08:30:55 UTC, Per Nordlöw wrote:
> is a suitable definition of `opCmp` for `SSOString` in terms of 
> independence of Phobos' `std.algorithm.comparison.cmp`.

I just found

     import core.internal.array.comparison : __cmp;

I presume that is a better alternative if Phobos' independence is 
desired.


More information about the Digitalmars-d-learn mailing list