unorder_map<float, short> Why does this work?
问题 I am using an unordered_map>float, unsigned short> to implement a hash table in C++. I know that using floats as keys to a hash table is a BAD idea under most circumstances because comparing them is error prone. However, under these circumstances I am reading the floats in from large files and their precision is known and constant. However, I would like to know the details of how unordered_map is hashing my floats in order to estimate collision frequency. I am not overriding the default hash