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>

template<class CHAR_TYPE>
class StringRefData
    : public bsl::basic_string_view<CHAR_TYPE>

Base Classes

Name

Description

bsl::basic_string_view<CHAR_TYPE>

A non‐owning reference to a string.

Type Aliases

Name

Description

size_type

This typedef is an alias to std::size_t.

Member Functions

Name

Description

StringRefData [constructor]

Constructors

operator BloombergLP::bslmf::NestedTraitDeclaration<StringRefData, is_trivially_copyable>

Nested trait declaration for bsl::is_trivially_copyable.

Static Member Functions

Name

Description

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

Name

Description

StringRefImp

Provide a non‐owning reference to a contiguous character sequence.

Created with MrDocs