Ensures sufficient capacity to accommodate n elements.
Postcondition: capacity >= n
Complexity: O(log(e - capacity)) if e > capacity, otherwise O(1).
See Implementation
Ensures sufficient capacity to accommodate n elements.
Postcondition: capacity >= n
Complexity: O(log(e - capacity)) if e > capacity, otherwise O(1).