I don’t think there’s any real use case for it
I’d say clear() is good for clarity, and that’s it
Histogram where you want to keep a count for each float value you’ve seen (maybe rounded to some precision to reduce the number of buckets)
Not disagreeing with your comment, just saying it’s not uncommon
If you're rounding anyway it's basically the same amount of work.
But the ‘naive’ histogram is an example of a map using float keys.
Hashing the floats themselves isn't going to give you a useful histogram.
Is there a codebase that hashes float to a useful effect? If it exists, I'd be interested to see it
I don’t think there’s any real use case for it
I’d say clear() is good for clarity, and that’s it