3 ms·
What’s the reasoning behind this?
What’s the reasoning behind this?
I think to be comparable in c++ types are required to implement < operator and the same is exclusively used by the stdlib.
If you sort2(a, b), it would be nice if min(a, b) == a && max(a, b) == b.