IndexMixin.removeKey

Removes all elements with key k from this container.

  1. size_t removeKey(KeyType k)
  2. size_t removeKey(Keys keys)
  3. size_t removeKey(Key[] keys)
  4. size_t removeKey(Stuff stuff)
    mixintemplate IndexMixin(size_t N, alias KeyFromValue, alias Hash, alias Eq, bool allowDuplicates, alias SeqRange, ThisContainer)
    version(!OldWay)
    size_t
    removeKey
    (
    Stuff
    )
    (
    Stuff stuff
    )
    if (
    isInputRange!Stuff &&
    isImplicitlyConvertible!(ElementType!Stuff, KeyType)
    &&
    !isDynamicArray!Stuff
    )

Return Value

Type: size_t

the number of elements removed Complexity: O(n k * d(n)),
O(n + n k) for this index (O(n k) on a good day)

Meta