RedBlackTree.stableInsert

Insert a single element in the container. Note that this does not invalidate any ranges currently iterating the container.

  1. size_t stableInsert(Stuff stuff)
    class RedBlackTree(T, alias less = "a < b", bool allowDuplicates = false)
    size_t
    stableInsert
    (
    Stuff
    )
    (
    Stuff stuff
    )
    if (
    is(typeof(binaryFun!less(T.init, T.init)))
    )
  2. size_t stableInsert(Stuff stuff)

Return Value

Type: size_t

The number of elements inserted.

Complexity: O(log(n))

Meta

Suggestion Box / Bug Report