3 ms·
operator<=> was new to me. It's the three-way comparison operator. https://en.cppreference.com/w/cpp/language/operator_comparison#Three-way_comparison https:/
by masfuerte 2y ago
operator<=> was new to me. It's the three-way comparison operator.
https://en.cppreference.com/w/cpp/language/operator_comparison#Three-way_comparison https://en.cppreference.com/w/cpp/language/operator_comparis...
- cpeterso 2y agoaka the spaceship operator. By defining just the spaceship operator for some types A and B, the compiler can synthesize overloads for the typical comparison operators like < <= == >= > for A vs B and B vs A.