HashMap.buckets

Set the desired number of buckets in the hash table. Any value greater than or equal to one is OK.

If different than current buckets, causes a version change

Time complexity: O(n)

  1. size_t buckets()
  2. HashMap buckets(size_t cap)
    class HashMap(K, V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
    final
    buckets
  3. HashMap buckets(size_t cap, float threshold)

Meta