The Spaceship Operator: <=>

C++20 introduces the “Three-Way Comparison Operator” also known as the spaceship operator. A simple example the std::strong_ordering is only available for integral types, for floating-point values there is the std::partial_ordering (less, greater, equivalent and unordered). For your own defined types there is also the std::weak_ordering (less, greater, equivalent)