Adjust the capacity without changing the size
Synopsis
Declared in header </boost/url/url_base.hpp#L186[boost/url/url_base.hpp,window=blank_]>
void
reserve(size_t n);
Description
This function adjusts the capacity of the container in characters, without affecting the current contents. Has no effect if `n < = this->capacity()`.
Exception Safety
Strong guarantee. Calls to allocate may throw.
Return Value
-
void
Parameters
Name | Type |
---|---|
n |
|