Array.removeBack

Removes the value from the back of the array. Both stable and non-stable versions behave the same and guarantee that ranges iterating over the array are never invalidated.

Precondition: empty == false

Complexity: O(1).

  1. void removeBack()
    struct Array(T)
    void
    removeBack
    ()
    if (
    is(immutable T == immutable bool)
    )
  2. size_t removeBack(size_t howMany)

Throws

Exception if the array is empty.

Meta