[#boost-urls-url_base-capacity]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_base.adoc[url&lowbar;base]::capacity
:relfileprefix: ../../../
:mrdocs:

Return the number of characters that can be stored without reallocating

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L146[boost&sol;url&sol;url&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
capacity() const noexcept;
----

== Description

This does not include the null terminator, which is always present&period;

== Complexity

Constant&period;

== Exception Safety

Throws nothing&period;

== Return Value

`&ast;this`


[.small]#Created with https://www.mrdocs.com[MrDocs]#
