Colleagues, good morning!unordered_set container allos "hash" and "compare" functions specifications through template arguments. Something like this "unordered_set<string, hash<string>, HashCmp> a;". On the other hand there is neither invariant specified (in cppreference or any other relevant web resources) for these two functions ("hash" and "compare"),
Two values k1 and k2 are considered equivalent if the container's key equality predicate pred(k1, k2) is valid and returns true when passed those values. If k1 and k2 are equivalent, the container's hash function shall return the same value for both.