Create a string reference to a null‐terminated C string.

Synopsis

Declared in <bslstl_stringref.h>

StringRefImp(CHAR_TYPE const* data);

Description

Create a string‐reference object having a valid std::string value, whose external representation begins at the specified data address and extends for std::char_traits<CHAR_TYPE>::length(data) characters. The external representation must remain valid as long as it is bound to this string reference. The behavior is undefined unless data is null‐terminated.

Parameters

Name

Description

data

null‐terminated character string to reference

Created with MrDocs