> While in C++, a sorting algorithm will run on anything with the operator< reloaded with no correctness guaranteed or even pinky-promised.
Though this claim is correct, it's important to state that C++20 also gained language support for working with weaker equivalence/ordering relations. Details:
Though this claim is correct, it's important to state that C++20 also gained language support for working with weaker equivalence/ordering relations. Details:
- https://en.cppreference.com/w/cpp/header/compare
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p076...
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p051...