efficient / libcuckoo

A high-performance, concurrent hash table
Other
1.61k stars 275 forks source link

Document: Please clarify the difference from STL's unordered_map. #34

Closed MRYingLEE closed 8 years ago

MRYingLEE commented 8 years ago

In the document, it was said that: "Its interface resembles that of STL's unordered_map but does contain some important differences.", but no detail was mentioned.

I am migrating some code from STL's unordered_map to libcucko's cuckoohash_map. Just in case I misunderstand something, can you clarify?

Thank you in advance, Ying

manugoyal commented 8 years ago

Hi Ying,

You will most likely not be able to use cuckoohash_map as a drop-in replacement for std::unordered_map. We support effectively the same functionality as the STL map, but the available functions and their signatures differ quite a bit from the STL versions, as they are more tailored to a concurrent interface.

You should take a look at the Doxygen documentation, which is linked on the project's github page, and compare it to the STL documentation.