Skip to content

Commit

Permalink
Bug correction (#31), set a moved hash map in a valid state so that i…
Browse files Browse the repository at this point in the history
…t can still be used even after a move (#32)

* Bug correction, the hash table is now in a valid state after a move (#31). This commit also allows the hash table to have a bucket count equals to 0.

* Rename m_load_threshold to m_max_load_threshold_rehash and m_min_load_factor_rehash_threshold to m_min_load_threshold_rehash.

* Add clear() method in growth policies classes + minor refactoring.

* Add tests on using a moved hopsctoch_map.

* Remove unused MIN_BUCKETS_SIZE variable in mod_growth_policy.
  • Loading branch information
Tessil authored May 27, 2018
1 parent db0fc50 commit b08a0d6
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 133 deletions.
Loading

0 comments on commit b08a0d6

Please sign in to comment.