[#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:

Bind this string reference to the same string as `stringRef`&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&lowbar;TYPE&gt;] const& stringRef);
----

== Description

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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stringRef*
| string reference to assign from
|===


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