[#bsl-basic_string-0faf-resize-01] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::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-0faf/resize-09.adoc[resize](xref:bsl/basic_string-0faf/size_type.adoc[size_type] newLength); ---- [.small]#xref:bsl/basic_string-0faf/resize-09.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-0faf/resize-08.adoc[resize]( xref:bsl/basic_string-0faf/size_type.adoc[size_type] newLength, CHAR_TYPE character); ---- [.small]#xref:bsl/basic_string-0faf/resize-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#