Sign in to follow this  

hash map in C ( like std::map in c++ )?

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, Do u know if there is any good hash map library in C ( some thing similar to std::map ). I can only use C for my project and cannot use c++ standard library or stl. Please point me to such a resource if u know any. Thank you. Bye.

Share this post


Link to post
Share on other sites
std::map isn't a hash map, it's typically a red black tree. Do you really want a hash map (I.e. can the type you want to store in it hash correctly?), or do you want something like std::map?

Either way, what type are you storing in it? C doesn't have templates, so you'll need one implementaion of the data structure for every type you want to use with it.

Share this post


Link to post
Share on other sites

This topic is 3664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this