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

Fix constructors for custom container #40

Closed martinus closed 2 years ago

martinus commented 2 years ago

Previously I (wrongly) used containers for the construction of maps when a custom container was specified. That's not really how it is intended, the parameter should still be an allocator.

This fixes that issues, so now its possible to copy/move etc. maps when a custom container is used. That container needs the constructors that accept an allocator.

I had to bump version by a major number to 2.0.0 because this is an incompatible API change.

martinus commented 2 years ago

fixes #39