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