Array.linearInsert

Inserts values into this ordered set.

  1. bool[Us.length] linearInsert(Us values)
    struct Array(E, Ordering ordering = Ordering.unsorted, bool useGC = shouldAddGCRange!E, alias less = "a < b")
    static if(IsOrdered!ordering)
    static if(ordering == Ordering.sortedUniqueSet)
    @"complexity", "O(length)"
    bool[Us.length]
    linearInsert
    (
    SearchPolicy sp = SearchPolicy.binarySearch
    Us...
    )
    ()
    if (
    values.length >= 1 &&
    allSatisfy!(isElementAssignable, Us)
    )
  2. void linearInsert(Us values)

Return Value

Type: bool[Us.length]

bool-array with same length as values, where i:th bool value is set if value[i] wasn't previously in this.

Meta