The series continue;
C++20: The Three-Way Comparison Operator
by Rainer Grimm
From the article:
The three-way comparison operator <=> is often just called spaceship operator. The spaceship operator determines for two values A and B whether A < B, A = B, or A > B. You can define the spaceship operator or the compiler can auto-generate it for you...
Add a Comment
Comments are closed.