Return a capacity that is at least the specified newLength and at least twice the specified capacity if this is less than the specified maxSize, but never more than maxSize. The behavior is undefined unless capacity < newLength and newLength <= maxSize.
Declared in <bslstl_vector.h>
static
std::size_t
computeNewCapacity(
std::size_t newLength,
std::size_t capacity,
std::size_t maxSize);