[#BloombergLP-bslstl-StringRefImp-0c-assign-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp]::assign :relfileprefix: ../../../ :mrdocs: `assign` overloads == Synopses Declared in `<bslstl_stringref.h>` Bind this string reference to the same string as `stringRef`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslstl/StringRefImp-0c/assign-0f.adoc[assign](xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp<CHAR_TYPE>] const& stringRef); ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-0f.adoc[_» more..._]# Bind this string reference to the specified string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslstl/StringRefImp-0c/assign-06.adoc[assign](xref:bsl/basic_string-0faf.adoc[bsl::basic_string<CHAR_TYPE>] const& str); ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-06.adoc[_» more..._]# Bind this string reference to a null‐terminated C string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslstl/StringRefImp-0c/assign-023.adoc[assign](CHAR_TYPE const* data); ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-023.adoc[_» more..._]# Bind this string reference to the specified iterator range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslstl/StringRefImp-0c/assign-09.adoc[assign]( xref:BloombergLP/bslstl/StringRefImp-0c/const_iterator.adoc[const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0c/const_iterator.adoc[const_iterator] end); ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-09.adoc[_» more..._]# Assign this ref to the specified `data` of the specified `length`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslstl/StringRefImp-0c/assign-00.adoc[assign]( CHAR_TYPE const* data, xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size_type] length); ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-00.adoc[_» more..._]# Bind this string reference to the specified character sequence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INT_TYPE> void xref:BloombergLP/bslstl/StringRefImp-0c/assign-025.adoc[assign]( CHAR_TYPE const* data, INT_TYPE length) requires bsl::is_integral<INT_TYPE>::value; ---- [.small]#xref:BloombergLP/bslstl/StringRefImp-0c/assign-025.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *stringRef* | string reference to assign from | *str* | string whose contents are referenced | *data* | null‐terminated character string to reference | *begin* | start of the character sequence to reference | *end* | one past the end of the character sequence | *length* | number of characters in the sequence |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#