:relfileprefix: ../../../
[#boost-urls-url_base-capacity]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_base.adoc[pass:[url_base]]::capacity


Return the number of characters that can be stored without reallocating


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L147[boost/url/url_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:std.adoc[std]::size_t
capacity() const noexcept;
----

== Description


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

=== Complexity

Constant.

=== Exception Safety

Throws nothing.








