[#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); ---- == Parameters [cols="1,4"] |=== | Name| Description | *data* | address of the character sequence to reference | *length* | number of characters in the sequence |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#