Spaceships

Hi CFE-Devs,

I notice in the v6.0 branch that there is a new token called “spaceship” that is for the character sequence ‘<=>’. What is this used for?

Thanks,

MartinO

Hi CFE-Devs,

I notice in the v6.0 branch that there is a new token called “spaceship”
that is for the character sequence ‘<=>’. What is this used for?

See C++2a "spaceship operator"

Hi Martin,

I guess, it is reserved for the upcoming three-way comparison ("spaceship") operator: http://en.cppreference.com/w/cpp/language/operator_comparison

18.02.2018 00:55, Martin J. O'Riordan via cfe-dev пишет:

This is the C++20 three-way comparison operator. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0515r3.pdf

Thanks Richard and Alexey,

your references explain this perfectly. I had been completely oblivious to this extension proposal - neat name for the token J

All the best,

MartinO