[#bsl-basic_string-0e-capacity]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic&lowbar;string&lt;wchar&lowbar;t&gt;]::capacity
:relfileprefix: ../../
:mrdocs:

Return the capacity of this string, i&period;e&period;, the maximum length for which resizing is guaranteed not to trigger a reallocation&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0e/size_type.adoc[size&lowbar;type]
capacity() const noexcept;
----


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