While I was trying to learn about C++ operators, I stumbled upon the following table that listed a strange comparison operator. What does this <=>
operator do?
Since 2017 cppreference.com updated that page and now contains detailed information about the<=>
operator.
Best Answer
This is called the three-way comparison operator.
According to the P0515 paper proposal:
The cppreference says: