TotalContainer.stableInsertFront

Inserts value to the front or back of the container. stuff can be a value convertible to the container's element type or a range of values convertible to it. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated.

  1. size_t insertFront(Stuff stuff)
  2. size_t stableInsertFront(Stuff stuff)
    struct TotalContainer(T)
    size_t
    stableInsertFront
    (
    Stuff
    )
    (
    Stuff stuff
    )
  3. size_t insertBack(Stuff stuff)
  4. size_t stableInsertBack(T value)

Return Value

Type: size_t

The number of elements inserted

Complexity: O(log(n)).

Meta

Suggestion Box / Bug Report