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

The bucket_count parameter is not used in the ctor #45

Closed Philippe91 closed 1 year ago

Philippe91 commented 1 year ago

The bucket_count parameter is not used in the ctor. Shouldn't the ctor call reserve(bucket_count) ?

https://github.com/martinus/unordered_dense/blob/16585e3c8c6982e590df176b3c11f737e8dff63a/include/ankerl/unordered_dense.h#L749

martinus commented 1 year ago

Thanks for the report! I've fixed this issue, and created a new release v2.0.1 with that fix.