HybridHashMap.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 HybridHashMap(K, V = void, alias hasher = hashOf, string keyEqualPred = defaultKeyEqualPredOf!(K), Allocator = Mallocator, Options options = Options.init)
    @trusted
    insert
    ()
    (
    const T element
    )
    if (
    isAllocator!Allocator
    )
  2. InsertionStatus insert(K key, V value)

Meta