IndexMixin.insert

insert contents of r into this container. For Unique variant, will refuse any items in content if it already exists in index.

  1. size_t insert(SomeValue value)
  2. size_t insert(SomeRange r)
    mixin template IndexMixin(size_t N, alias KeyFromValue, alias Hash, alias Eq, bool allowDuplicates, alias SeqRange, ThisContainer)
    size_t
    insert
    (
    SomeRange
    )
    (
    SomeRange r
    )
    if (
    isImplicitlyConvertible!(ElementType!SomeRange, ValueView)
    )

Return Value

Type: size_t

number of items inserted into this container. Complexity: O(i(n))
O(n+n r) for this index (O(n r) on a good day)

Meta