[#bsl-basic_string-0ce-resize-0a] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic_string<char16_t>]::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-0ce/size_type.adoc[size_type] newLength); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#