[#bsl-basic_string-0fb-operator_assign-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::operator= :relfileprefix: ../../ :mrdocs: Assign to this string the value of the specified `rhs` string, propagate to this object the allocator of `rhs` if the `ALLOCATOR` type has trait `propagate_on_container_copy_assignment`, 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<char>]& operator=(xref:bsl/basic_string-0faf.adoc[basic_string<char>] const& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#