[#BloombergLP-bslstl-StringRefImp-0c-2constructor-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp]::StringRefImp
:relfileprefix: ../../../
:mrdocs:

Create a string reference to external character data&period;

== Synopsis

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

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

== Description

Create a string&hyphen;reference object having a valid `std&colon;&colon;string` value, whose external representation begins at the specified `data` address and extends for the specified `length` characters&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| address of the external character data
| *length*
| number of characters in the referenced sequence
|===


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