Change the capacity of this string to the specified newCapacity. Note that the capacity of a string is the maximum length it can accommodate without reallocation. The actual storage allocated may be higher.
newCapacity
Declared in <bslstl_string.h>
<bslstl_string.h>
void reserve(size_type newCapacity);