Re: Confusion on the spaceship operator in C++20
It doesn't return 2 values. It returns 3 values, a bit like strcmp. As usual, Cppreference is here to explain though also as usual it's C++20 and cppreference is still catching up. What I didn't know until you asked is that just defining that gives you all the comparison operators; maybe this time next year everyone will support it and I can use it in things.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector