martinus / unordered_dense

A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion
MIT License
898 stars 72 forks source link

Does this support heterogeneous lookup? #29

Closed iwubcode closed 2 years ago

iwubcode commented 2 years ago

Does this unordered_map variant support heterogeneous lookup using the is_transparent flag?

If so, maybe add it to the docs?

martinus commented 2 years ago

Yes it does, no docs yet though. Search in the unit test and you'll find an example

iwubcode commented 2 years ago

Until there are docs, if anyone is interested the unit tests are here: https://github.com/martinus/unordered_dense/blob/main/test/unit/transparent.cpp

Thanks @martinus for the speedy answer!