[#bsl-basic_string-0fb-resize-0e] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::resize :relfileprefix: ../../ :mrdocs: `resize` overloads == Synopses Declared in `<bslstl_string.h>` Change the length of this string to the specified `newLength`, erasing characters at the end if `newLength < length()` or appending the appropriate number of copies of `CHAR_TYPE()` at the end if `length() < newLength`. [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_type] newLength); ---- [.small]#xref:bsl/basic_string-0fb/resize-0d.adoc[_» more..._]# Change the length of this string to the specified `newLength`, erasing characters at the end if `newLength < length()` or appending the appropriate number of copies of the specified `character` at the end if `length() < newLength`. [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_type] newLength, char character); ---- [.small]#xref:bsl/basic_string-0fb/resize-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#