|
|
|
|
|
by themulticaster
1206 days ago
|
|
Well, using the identity function as a hash does not provide any avalanche effect at all. And as parent comments point out, certain hash map implementations require a strong hash function.
I'm guessing that the identity function probably isn't a "good" hash function as required by abseil's swiss tables and similar hash maps, but to be honest I haven't looked into this any further.
Put another way, I'd have expected std::hash to be at least a very basic hash function (like FNV-1 for example). |
|