[#BloombergLP-bslstl-StringRefImp-0c-assign-09]
= 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 string at the specified `begin` iterator, extending up to, but not including, the character at the specified `end` iterator&period; The string indicated by `begin` and `end` must remain valid as long as it is bound to this object&period; The behavior is undefined unless `begin &lt;&equals; end`&period; Note that the string need not be null&hyphen;terminated and may contain embedded null characters&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/const_iterator.adoc[const&lowbar;iterator] begin,
    xref:BloombergLP/bslstl/StringRefImp-0c/const_iterator.adoc[const&lowbar;iterator] end);
----


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