Request that the capacity be at least the specified value.
Synopsis
Declared in <bslstl_string.h>
void
reserve(size_type newCapacity);
Description
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.
Parameters
Name |
Description |
newCapacity |
requested capacity in characters |
Created with MrDocs