The OpenD Programming Language

TotalContainer.stableRemoveBack

Removes the value at the front or back of the container. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated. The optional parameter howMany instructs removal of that many elements. If howMany > n, all elements are removed and no exception is thrown.

Precondition: !empty

Complexity: O(log(n)).

  1. void stableRemoveBack()
    struct TotalContainer(T)
    void
    stableRemoveBack
    ()
  2. size_t stableRemoveBack(size_t howMany)

Meta