IndexMixin.insertFront

Inserts every element of stuff not rejected by another index into the front of the index.

  1. size_t insertFront(SomeRange stuff)
    mixin template IndexMixin(size_t N, alias Range_0)
    size_t
    insertFront
    (
    SomeRange
    )
    (
    SomeRange stuff
    )
    if (
    isInputRange!SomeRange &&
    isImplicitlyConvertible!(ElementType!SomeRange, ValueView)
    )
  2. size_t insertFront(SomeValue value)

Return Value

Type: size_t

The number of elements inserted. Complexity: O(n stuff * i(n));
O(n stuff) for this index

Meta