The OpenD Programming Language

TotalContainer.removeBack

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 removeBack()
    struct TotalContainer(T)
    void
    removeBack
    ()
  2. size_t removeBack(size_t howMany)

Meta