[#bsl-basic_string-0e-operator_assign-0a9] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic_string<wchar_t>]::operator= :relfileprefix: ../../ :mrdocs: Move‐assign from the specified `rhs` string and return `*this`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string<wchar_t>]& operator=(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<basic_string<wchar_t>>] rhs) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `AllocatorTraits::propagate_on_container_move_assignment::value || AllocatorTraits::is_always_equal::value`. [.small]#Created with https://www.mrdocs.com[MrDocs]#