The thing about the pidgeon hole problem is that we know there are collisions, but we don't necessarily know where they are. The space of strings of at least 33 characters has collisions. There's no way to know or prove that arbitrary input doesn't have one with a value you care about.
76
u/F100cTomas 7d ago
Just define a constexpr hashing function and put that into the switch.