shashi singh
shashi singh

Reputation: 3

How data stored/How can we fetch data stored in bucket in unordered_map c++11

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

Answers (1)

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

Related Questions