On opCmp

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 2 05:52:47 PST 2015


On Friday, 27 February 2015 at 15:00:35 UTC, Steven Schveighoffer 
wrote:
> Hm... what about:
>
> return count < rhs.count ? -1 : count > rhs.count ? 1 : rank < 
> rhs.rank ? -1 : rank > rhs.rank;

Is this more efficient than my version?


More information about the Digitalmars-d-learn mailing list