3 ms·
better implemented as tie(x.min, x.max) < tie(y.min, y.max)
by mgaunard 1y ago
better implemented as
tie(x.min, x.max) < tie(y.min, y.max)
- gsliepen 1y agoOr since C++20, just default operator<=>: https://en.cppreference.com/w/cpp/language/default_comparisons.html https://en.cppreference.com/w/cpp/language/default_compariso...