Overloading the Spaceship Operator, A Recipe
Overloading the Spaceship Operator, A Recipe
indii.org C++: Overloading the Spaceship Operator, A Recipe
How to overload the three-way comparison (spaceship) `operator<=>`, and a reminder to overload `operator==` as well.
The spaceship operator took me longer than it should (my mistake). A note to my future self, and maybe of use to you.
0
comments