bsl::basic_string::reserve

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.

Synopsis

Declared in <bslstl_string.h>

void
reserve(size_type newCapacity);