Reputation: 3
I just wanted to how unordered map stored the data into the bucket and what hashing function it is implementing.Also the internal implementation of Hashing function i wanted to know in C++.How data is stored on what basis? Thanks in Advance :)
Upvotes: 0
Views: 55
Reputation: 171117
Different implementations of the standard library can use different hashing algorithms, storage details etc. Since the code invovles templates, most (if not all) standard library implementations contain the relevant code in headers. So you can just open the <unordered_map>
header shipped in your standard library and start looking.
Upvotes: 2