BloombergLP::bslstl::StringRefImp::StringRefImp

Create a string reference to external character data.

Synopsis

Declared in <bslstl_stringref.h>

StringRefImp(
    CHAR_TYPE const* data,
    size_type length);

Description

Create a string-reference object having a valid std::string value, whose external representation begins at the specified data address and extends for the specified length characters.

Parameters

NameDescription
dataaddress of the external character data
lengthnumber of characters in the referenced sequence