3 ms·
Well, this is C++, so the spaceship operator can be overloaded for all sorts of clever purposes. For example, when comparing strings, you could use it to coerc
by pavlov 9y ago
Well, this is C++, so the spaceship operator can be overloaded for all sorts of clever purposes.
For example, when comparing strings, you could use it to coerce the arguments into spaceship objects, then run a little Space War simulation to lighten the user's day. Just another day of C++ operator overloading.