Daily bit(e) of C++ | C++20 (spaceship) operator<=> vs equality
Daily bit(e) of C++ #325, Impact of custom definitions of the C++20 spaceship comparison operator on equality comparison.
One potentially surprising behaviour when using the C++20 (spaceship) operator<=> is that unlike the defaulted version, a custom implementation will not generate equality comparison operators.
A custom operator<=> implies that the defaulted operator== wouldn't produce correct results, and for performance reasons, using the output from operator<=> isn't desirable.