[#bsl-basic_string-0e-assign-003] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::assign :relfileprefix: ../../ :mrdocs: Assign to this string the value of the specified `string`, and return a reference providing modifiable access to this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC2> xref:bsl/basic_string-0faf.adoc[basic_string<wchar_t>]& assign(std::basic_string<wchar_t, char_traits<wchar_t>, ALLOC2> const& string); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#