[#bsl-basic_string-0faf-resize-09]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::resize
:relfileprefix: ../../
:mrdocs:

Change the length of this string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resize(xref:bsl/basic_string-0faf/size_type.adoc[size&lowbar;type] newLength);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *newLength*
| new length of this string
|===


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