[#BloombergLP-bslstl-StringRefImp-0a-2constructor-0d6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-0a.adoc[StringRefImp&lt;wchar&lowbar;t&gt;]::StringRefImp
:relfileprefix: ../../../
:mrdocs:

Create a string&hyphen;reference object having a valid `std&colon;&colon;string` value, whose external representation begins at the specified `startIndex` in the specified `original` string reference, and extends either the specified `numCharacters` or until the end of the `original` string reference, whichever comes first&period; The external representation must remain valid as long as it is bound to this string reference&period; The behavior is undefined unless `startIndex &lt;&equals; original&period;length()`&period; Note that if `startIndex` is `original&period;length()` an empty string reference is returned&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
StringRefImp(
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp&lt;wchar&lowbar;t&gt;] const& original,
    xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size&lowbar;type] startIndex,
    xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size&lowbar;type] numCharacters);
----


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