[#BloombergLP-bslstl-StringRefImp-0a-assign-033] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0a.adoc[StringRefImp<wchar_t>]::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-0a/const_iterator.adoc[const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0a/const_iterator.adoc[const_iterator] end); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#