[#bsl-basic_string-0faf-data-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::data :relfileprefix: ../../ :mrdocs: Return a pointer to the character buffer of this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CHAR_TYPE* data() noexcept; ---- == Description Return an address providing modifiable access to the null‐terminated buffer of `length() + 1` characters whose contents are identical to the value of this string. Note that any call to the string destructor or any of its manipulators invalidates the returned pointer. == Return Value pointer to the character buffer of this string [.small]#Created with https://www.mrdocs.com[MrDocs]#