[#BloombergLP-bslstl-StringRefData-04-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefData-04.adoc[StringRefData]::StringRefData
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a `StringRefData` object having default attribute values&colon; &grave; begin() &equals;&equals; 0 end() &equals;&equals; 0 &grave;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/StringRefData-04/2constructor-0d.adoc[StringRefData]();
----

[.small]#xref:BloombergLP/bslstl/StringRefData-04/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a `StringRefData` object from the specified `view`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslstl/StringRefData-04/2constructor-0a.adoc[StringRefData](bsl::basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE&gt; const& view);
----

[.small]#xref:BloombergLP/bslstl/StringRefData-04/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a `StringRefData` object with the specified `begin` and `end` attribute values&period; The behavior is undefined unless `begin &lt;&equals; end` and `!begin &equals;&equals; !end`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/StringRefData-04/2constructor-06.adoc[StringRefData](
    CHAR&lowbar;TYPE const* begin,
    CHAR&lowbar;TYPE const* end);
----

[.small]#xref:BloombergLP/bslstl/StringRefData-04/2constructor-06.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *view*
| string view providing the referenced character range
| *begin*
| address of the first character in the referenced range
| *end*
| address one past the last character in the referenced range
|===


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