[#bsl-basic_string-0e-operator_assign-07] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::operator= :relfileprefix: ../../ :mrdocs: Assign to this string the value of the specified `rhs` 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>]& operator=(std::basic_string<wchar_t, char_traits<wchar_t>, ALLOC2> const& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#