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