Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
a_t48
· 8y ago · 0 comments
What’s the reasoning behind this?
Comments
[–]
enitihas
8y ago
I think to be comparable in c++ types are required to implement < operator and the same is exclusively used by the stdlib.
[–]
darkmx0z
8y ago
If you sort2(a, b), it would be nice if min(a, b) == a && max(a, b) == b.