Return a pointer to the first character of the referenced string.

Synopsis

Declared in <bslstl_stringref.h>

CHAR_TYPE const*
data() const;

Description

Return the address of the first character of the string bound to this string reference such that [data() .. data()+length())] is a valid half‐open range of characters. Note that the range of characters might not be null‐terminated and may contain embedded null characters.

Return Value

address of the first character of the referenced string

Created with MrDocs