[#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. The string indicated by `begin` and `end` must remain valid as long as it is bound to this object. The behavior is undefined unless `begin <= end`. Note that the string need not be null‐terminated and may contain embedded null characters. == Synopsis Declared in `<bslstl_stringref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign( xref:BloombergLP/bslstl/StringRefImp-0c/const_iterator.adoc[const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0c/const_iterator.adoc[const_iterator] end); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#