Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
robin_hood::unordered_map and robin_hood::unordered_set is a platform independent replacement for std::unordered_map / std::unordered_set which is both faster and more memory efficient for real-world use cases.
Installation & Usage
Direct Inclusion
- Add
robin_hood.hto your C++ project. - Use
robin_hood::unordered_mapinstead ofstd::unordered_map - Use
robin_hood::unordered_setinstead ofstd::unordered_set
Conan, the C/C++ Package Manager
- Setup your
CMakeLists.txt(see Conan documentation on how to use MSBuild, Meson and others) like this:project(myproject CXX) add_executable(${PROJECT_NAME} main.cpp) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) # Include Conan-generated file conan_basic_setup(TARGETS) # Introduce Conan-generated targets target_link_libraries(${PROJECT_NAME} CONAN_PKG::robin-hood-hashing) - Create
conanfile.txtin your source dir (don't forget to update the version)[requires] robin-hood-hashing/3.11.5 [generators] cmake - Install and run Conan, then build your project as always:
Thepip install conan mkdir build cd build conan install ../ --build=missing cmake ../ cmake --build .robin-hood-hashingpackage in Conan is kept up to date by Conan contributors. If the version is out of date, please create an issue or pull request on theconan-center-indexrepository.
... More
| license | MIT |
|---|---|
| project | robin-hood-hashing |
| url | github.com/martinus/robin-hood-hashing |
| t.c.brindle@gmail.com |
1 Version
| version | 3.11.5+1 |
|---|---|
| repository | https://pkg.cppget.org/1/stable |
| depends | 0 |
| reviews | +1 |