A C++20 Preview: operator <=>
summary
A new operator<=> (the three‑way or "spaceship" operator) is being added for C++20 with precedence and associativity defined and library support proposed as <cmp>. A one‑line memberwise compare can be defaulted to generate all six relational operators, or users supply a single definition that returns a chosen ordering category (strong/weak/partial). Committee wording exists but no compiler implementation yet; vendors are waiting and implementations on GCC/Clang are requested so the feature can be exercised.
AI-written summary · about
related talks
01h 00mC++20 - the hidden pearls
01h 05mC++ Regular, Revisited
01h 02mC++20 - My Favorite Code Examples
01h 10mAn Overview of C++11/14, Part II
01h 02mFunctional Composable Operations with Unix-Style Pipes in C++
01h 05mBack To Basics: Overload Resolution
01h 37mExtending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as`
01h 01mthe Concepts of concepts
