Adjust the capacity without changing the size
This function adjusts the capacity of the container in characters, without affecting the current contents. Has no effect if `n<= this->capacity()`.
Calls to allocate may throw.
Name | Thrown on |
---|---|
Allocation |
failure |
Name | Description |
---|---|
n | The capacity in characters, excluding any null terminator. |