RBTree.insert

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

Complexity: O(log(n))

  1. size_t insert(Stuff stuff)
    struct RBTree(T, alias less = "a < b", bool allowDuplicates = true, ALLOC = ThreadMem, bool NOGC_ = false)
    pragma(inline, true)
    size_t
    insert
    (
    Stuff
    )
    (
    Stuff stuff
    )
    if (
    is(typeof(binaryFun!less(T.init, T.init)))
    )
  2. size_t insert(Stuff stuff)

Meta