[#BloombergLP-bslstl-StringRefImp-0c-assign-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp]::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( CHAR_TYPE const* data, xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size_type] length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#