BloombergLP::bslstl::StringRefImp::StringRefImp

Create a string reference to external character data.

Synopsis

Declared in <bslstl_stringref.h>

StringRefImp(bsl::basic_string_view<CHAR_TYPE> const& str);

Description

Create a string-reference object having a valid std::string value, whose external representation is defined by the specified str object. The external representation must remain valid as long as it is bound to this string reference.

Parameters

NameDescription
strstring view whose contents are referenced