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