[#BloombergLP-bslstl-StringRefImp-0c-assign-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp]::assign :relfileprefix: ../../../ :mrdocs: Modify this string reference to refer to the same string as the specified `stringRef`. Note, that the string bound to `stringRef` must remain valid as long as it is bound to this object. == Synopsis Declared in `<bslstl_stringref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign(xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp<CHAR_TYPE>] const& stringRef); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#