[#BloombergLP-bslstl-StringRefImp-0a-assign-009] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0a.adoc[StringRefImp<wchar_t>]::assign :relfileprefix: ../../../ :mrdocs: Assign this ref to the specified `data` of the specified `length`. == Synopsis Declared in `<bslstl_stringref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign( wchar_t const* data, xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size_type] length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#