[#BloombergLP-bslstl-StringRefImp-02-2constructor-0da] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp-02.adoc[StringRefImp<char>]::StringRefImp :relfileprefix: ../../../ :mrdocs: Create a string‐reference object having a valid `std::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. The external representation must remain valid as long as it is bound to this string reference. The behavior is undefined unless `startIndex <= original.length()`. Note that if `startIndex` is `original.length()` an empty string reference is returned. == Synopsis Declared in `<bslstl_stringref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- StringRefImp( xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp<char>] const& original, xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size_type] startIndex, xref:BloombergLP/bslstl/StringRefImp-0c/size_type.adoc[size_type] numCharacters); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#