IndexMixin.insertFront

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

  1. size_t insertFront(SomeRange stuff)
    mixintemplate 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)
  3. ThisNode* _front;
  4. ThisNode* _back;

Return Value

Type: size_t

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

Meta