Il giorno mar 27 mag 2025 alle ore 15:23 Thiago Macieira via Std-Proposals <std-proposals@lists.isocpp.org> ha scritto:
[...] An equality operator
alone won't suffice, because then the order of case labels would matter, which
seems ill-advised to me. 

Why would the order matter? You're looking for an item in a unordered set. Of course, having other operators or even a hash function defined for the specific type would make it possible to optimize the search.

As I've mentioned earlier, there's a library implementation of this. It can of course be made better, but the core functionality is there. Have a look: https://github.com/falemagn/uberswitch

Fabio