[#bsl-basic_string-0e-assign-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::assign :relfileprefix: ../../ :mrdocs: Assign to this string the value of a string of the specified `numChars` length whose every character is equal to the specified `character`, and return a reference providing modifiable access to this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string<wchar_t>]& assign( xref:bsl/basic_string-0e/size_type.adoc[size_type] numChars, wchar_t character); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#