HashMap.threshold

Set the resize threshold, and resize as required Set the current desired load factor. Any value greater than 0 is OK. The current load is checked against it, possibly causing a resize.

Time complexity: O(n)

  1. float threshold()
  2. void threshold(float desired)
    class HashMap(K, V, alias Hash = Container.hash, alias Reap = Container.reap, alias Heap = Container.DefaultCollect)
    final
    void
    threshold
    (
    float desired
    )

Meta