[#BloombergLP-bslstl-StringRefImp-02-assign-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-02.adoc[StringRefImp&lt;char&gt;]::assign
:relfileprefix: ../../../
:mrdocs:

Assign this ref to the specified `data` of the specified `length`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringref&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
assign(
    char const* data,
    xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size&lowbar;type] length);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
