OpenHashMap.insert

Insert element, being either a key-value (map-case) or a just a key (set-case).

If element is a nullable type and it is null an AssertError is thrown.

  1. InsertionStatus insert(T element)
    struct OpenHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), alias Allocator = Mallocator.instance, bool borrowChecked = false, bool useSmallLinearSearch = true, bool usePrimeCapacity = false)
    @trusted
    insert
    ()
    (
    const T element
    )
  2. InsertionStatus insert(K key, V value)

Meta