Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

better implemented as

    tie(x.min, x.max) < tie(y.min, y.max)


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: