Return the number of characters that can be stored without reallocating

Synopsis

Declared in header </boost/url/url_base.hpp#L145[boost/url/url_base.hpp,window=blank_]>

size_t
capacity() const noexcept;

Description

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

Complexity

Constant.

Exception Safety

Throws nothing.

Return Value

  • size_t