cpp/locale/collate/hash

@1@ Public member function, calls the protected virtual member function of the most derived class.

@2@ Converts the character sequence to an integer value that is equal to the hash obtained for all strings that collate equivalent in this locale (compare returns ). For two strings that do not collate equivalent, the probability that their hashes are equal should be very small, approaching.

Return value
The hash value that respects collation order

Note
The system-supplied locales normally do not collate two strings as equivalent (compare does not return ) if returns, but a user-installed std facet may provide different collation rules, for example, it may treat strings as equivalent if they have the same Unicode normalized form.