IndexMixin.removeKey

Removes all elements with key k from this container.

  1. size_t removeKey(KeyType k)
  2. size_t removeKey(Stuff stuff)
    mixin template 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
    )
  3. template implicitlyConverts(Key)

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