[#BloombergLP-bslstl-StringRefImp-02-assign-0787]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-02.adoc[StringRefImp&lt;char&gt;]::assign
:relfileprefix: ../../../
:mrdocs:

Modify this string reference to refer to the same string as the specified `stringRef`&period; Note, that the string bound to `stringRef` must remain valid as long as it is bound to this object&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
assign(xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp&lt;char&gt;] const& stringRef);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
