[#bsl-basic_string-0fb-resize-0e]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic&lowbar;string&lt;char&gt;]::resize
:relfileprefix: ../../
:mrdocs:

`resize` overloads

== Synopses

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

Change the length of this string to the specified `newLength`, erasing characters at the end if `newLength &lt; length()` or appending the appropriate number of copies of `CHAR&lowbar;TYPE()` at the end if `length() &lt; newLength`&period;


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

[.small]#xref:bsl/basic_string-0fb/resize-0d.adoc[_» more&period;&period;&period;_]#

Change the length of this string to the specified `newLength`, erasing characters at the end if `newLength &lt; length()` or appending the appropriate number of copies of the specified `character` at the end if `length() &lt; newLength`&period;


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

[.small]#xref:bsl/basic_string-0fb/resize-03.adoc[_» more&period;&period;&period;_]#


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