int opCmp()(const scope typeof(this) that) const @nogc { auto a = this[]; auto b = that[]; return a < b ? -1 : (a > b); }-- /Jacob Carlborg
I see. Good to know. Thanks
Per Nordlöw via Digitalmars-d-learn Wed, 22 Jan 2020 13:06:20 -0800
int opCmp()(const scope typeof(this) that) const @nogc { auto a = this[]; auto b = that[]; return a < b ? -1 : (a > b); }-- /Jacob Carlborg
I see. Good to know. Thanks