boost::urls::url_base::reserve

Adjust the capacity without changing the size

Synopsis

Declared in <boost/url/url_base.hpp>

void
reserve(std::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.

Exceptions

NameThrown on
bad_allocAllocation failure

Parameters

NameDescription
nThe capacity in characters, excluding any null terminator.