C++ macros to write a hashtable implementation(cs.mcgill.ca) |
C++ macros to write a hashtable implementation(cs.mcgill.ca) |
I was totally hoping for some fancy templates and macro tricks to compile time gen all the code for a working hashtable implementation.
I wonder if part of the reason is that, by nature of the standard, std::unordered_map has to resolve its collisions by linear chaining, while khash is able to use quadratic probing.
they hash the data and use that as an index. So by def. That said it's pretty bare and missing _ALOT_