| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
unordered_map like containers, optimized for unsigned keys.
Internal container and allocator are not customizable at this time.
unsigned_map is a slot map that follows the unordered_map c++ standard apis as close as possible. Unlike most slot map implementations, you provide the unique key. This is useful when retro-fitting slot maps into legacy code. If key generations are desirable for your use-case, use a slot_map instead.
Warning : Key container will grow as large as the biggest key!
The flat_unsigned_hashmap is a more traditional hashing map, that has similar constraints as a slot map. Here, the lookup container will not grow as big as the biggest key. It is still much more performant than unordered_map, all the while offering a data() api which returns a pointer to the underlying values (hence flat).
Benchmarks are available here
fea_unsigned_map is a header library with no dependencies other than the stl.
Use conan to install the dependencies when running the test suite.
mkdir build && cd build cmake .. -A x64 -DFEA_UNSIGNED_MAP_TESTS=On -DFEA_UNSIGNED_MAP_BENCHMARKS=On && cmake --build . bin\fea_unsigned_map_tests.exe // Optionally cmake --build . --target install
mkdir build && cd build cmake .. -DFEA_UNSIGNED_MAP_TESTS=On -DFEA_UNSIGNED_MAP_BENCHMARKS=On && cmake --build . bin/fea_unsigned_map_tests // Optionally cmake --build . --target install
| Back | FazBrowse Home | New Git URL |