Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mgaunard
7 months ago
|
parent
|
context
|
favorite
| on:
C++: Maps on Chains
better implemented as
tie(x.min, x.max) < tie(y.min, y.max)
gsliepen
7 months ago
[–]
Or since C++20, just default operator<=>:
https://en.cppreference.com/w/cpp/language/default_compariso...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: