[#BloombergLP-bslstl-StringRefData-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::StringRefData :relfileprefix: ../../ :mrdocs: This class is an intermediate link between `bslstl::StringRef` used in BDE and `bsl::string_view` and is kept only for compatibility with legacy code. == Synopsis Declared in `<bslstl_stringrefdata.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class CHAR_TYPE> class StringRefData : public bsl::basic_string_view<CHAR_TYPE> ---- == Base Classes [cols="1,4"] |=== | Name| Description | `bsl::basic_string_view<CHAR_TYPE>` | A non‐owning reference to a string. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StringRefData-04/size_type.adoc[`size_type`] | This `typedef` is an alias to `std::size_t`. |=== == 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<StringRefData, is_trivially_copyable>`] | Nested trait declaration for `bsl::is_trivially_copyable`. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StringRefData-04/cStringLength.adoc[`cStringLength`] | Return the number of `CHAR_TYPE` characters in the specified null‐terminated `data` string, up to but not including the terminal null value. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/StringRefImp-0c.adoc[`StringRefImp`] | Provide a non‐owning reference to a contiguous character sequence. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#