Flying to the future.
How can I synthesize a C++20 three-way comparison from two-way comparisons?
by Raymond Chen
From the article:
The C++20 three-way comparison operator <=> (commonly nicknamed the spaceship operator due to its appearance) compares two items and describes the result. It’s called the three-way comparison because there are five possible results: less, equal, equivalent, greater, and unordered.
Yeah, the name is kind of weird...
Add a CommentComments are closed.