Three-way Comparison (C++20)

The spaceship operator for automatic comparison generation

Overview

C++20 introduces the spaceship operator (operator<=>) which enables automatic generation of all comparison operators.