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

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 `std&colon;&colon;char&lowbar;traits&lt;CHAR&lowbar;TYPE&gt;&colon;&colon;length(data)` characters&period; The external representation must remain valid as long as it is bound to this string reference&period; The behavior is undefined unless `data` is null&hyphen;terminated&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
StringRefImp(CHAR&lowbar;TYPE const* data);
----


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