Ensures sufficient capacity to accommodate e _elements. If e < capacity, this method does nothing.
Postcondition: capacity >= e
Note: If the capacity is increased, one should assume that all iterators to the elements are invalidated.
Complexity: at most O(length) if e > capacity, otherwise O(1).
See Implementation
Ensures sufficient capacity to accommodate e _elements. If e < capacity, this method does nothing.
Postcondition: capacity >= e
Note: If the capacity is increased, one should assume that all iterators to the elements are invalidated.
Complexity: at most O(length) if e > capacity, otherwise O(1).