hash map in C ( like std::map in c++ )?
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.
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.
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.
yes i am looking for something similar to std::map in C. The types i want to store are,
key : char*
value : double
thanks
bye.
key : char*
value : double
thanks
bye.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement