[#bsl-basic_string-0fb-resize-0d] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::resize :relfileprefix: ../../ :mrdocs: 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`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void resize(xref:bsl/basic_string-0fb/size_type.adoc[size_type] newLength); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#