Create a string reference to an iterator range.
Synopsis
Declared in <bslstl_stringref.h>
StringRefImp(
const_iterator begin,
const_iterator end);
Description
Create a string‐reference object having a valid std::string value, whose external representation begins at the specified begin iterator and extends up to, but not including, the specified end iterator. The external representation must remain valid as long as it is bound to this string reference. The behavior is undefined unless begin <= end. Note that, like an std::string, the string need not be null‐terminated and may contain embedded null characters.
Parameters
Name |
Description |
begin |
the start of the external representation |
end |
one past the end of the external representation |
Created with MrDocs