Posts

The autogenerated Equality Operator

You can define the three-way comparison operator or request it from the compiler with =default. But…
TimelineCpp20

C++20: Optimized Comparison with the Spaceship Operator

/
In this post, I conclude my miniseries on the three-way comparison operator with a few subtle details.…
TimelineCpp20

C++20: More Details to the Spaceship Operator

/
The compiler performs cleverly when it generates all six comparison operators. Ultimately, you get intuitive…
TimelineCpp20

C++20: The Three-Way Comparison Operator

/
The three-way comparison operator <=> is often just called the spaceship operator. The spaceship…