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

This class is an intermediate link between `bslstl&colon;&colon;StringRef` used in BDE and `bsl&colon;&colon;string&lowbar;view` and is kept only for compatibility with legacy code&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class CHAR&lowbar;TYPE&gt;
class StringRefData
    : public bsl::basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE&gt;
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `bsl::basic&lowbar;string&lowbar;view&lt;CHAR&lowbar;TYPE&gt;`
| A non&hyphen;owning reference to a string&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StringRefData-04/size_type.adoc[`size&lowbar;type`] 
| This `typedef` is an alias to `std&colon;&colon;size&lowbar;t`&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StringRefData-04/2constructor-02.adoc[`StringRefData`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bslstl/StringRefData-04/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;StringRefData, is&lowbar;trivially&lowbar;copyable&gt;`] 
| Nested trait declaration for `bsl&colon;&colon;is&lowbar;trivially&lowbar;copyable`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StringRefData-04/cStringLength.adoc[`cStringLength`] 
| Return the number of `CHAR&lowbar;TYPE` characters in the specified null&hyphen;terminated `data` string, up to but not including the terminal null value&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StringRefImp-0c.adoc[`StringRefImp`] 
| Provide a non&hyphen;owning reference to a contiguous character sequence&period;
|===


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