IndexMixin.insert

insert value into this container. For Unique variant, will refuse value if value already exists in index.

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

Return Value

Type: size_t

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

Meta