Return the number of characters that can be stored without reallocating

Synopsis

Declared in header <boost/url/url_base.hpp>

std::size_t
capacity() const noexcept;

Description

This does not include the null terminator, which is always present.

Complexity

Constant.

Exception Safety

Throws nothing.