[#bsl-basic_string-0ce-assign-072] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0ce.adoc[basic_string<char16_t>]::assign :relfileprefix: ../../ :mrdocs: Assign to this string the value of the specified `replacement`, and return a reference providing modifiable access to this string. Note that this method has exactly the same behavior as the corresponding `operator=`. == 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<char16_t>]& assign(STRING_VIEW_LIKE_TYPE const& replacement); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#