
Spaceship Operator operator<=> 4/4
The spaceship operator can use one of the following ordering:
strong ordering • if a is equivalent to b , f(a) is also equivalent to f(b)
• exactly one of < , == , or > must be true
O integral types, e.g. int , char
weak ordering • if a is equivalent to b , f(a) may not be equivalent to f(b)
• exactly one of < , == , or > must be true
O rectangles, e.g. R{2, 5} == R{5, 2}
partial ordering • if a is equivalent to b , f(a) may not be equivalent to f(b)
• < , == , or > may all be false
O floating-point float , e.g. NaN
39/64