What is a good C++ library for hash tables / hash maps similar to what java offers. I have worked with Google Sparsehash, but it has no support for collisions.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In addition to those mentioned in other answers, you could try MCT‘s
closed_hash_maporlinked_hash_map. It is internally similar to Google SparseHash, but doesn’t restrict values used and has some other functional advantages.I’m not sure I understand what you mean by “no support for collisions”, though. Both Google SparseHash and similarly implemented MCT of course handle collisions fine, though differently than Java’s
HashMap.