C++20: The Three-Way Comparison Operator--Rainer Grimm

Save to:
Instapaper Pocket Readability

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.

Comments (0)

There are currently no comments on this entry.