[#bsl-basic_string-0f3-data-0b] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0f3.adoc[basic_string<char32_t>]::data :relfileprefix: ../../ :mrdocs: `data` overloads == Synopses Declared in `<bslstl_string.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char32_t* xref:bsl/basic_string-0f3/data-09.adoc[data]() noexcept; ---- [.small]#xref:bsl/basic_string-0f3/data-09.adoc[_» more..._]# Return an address providing non‐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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char32_t const* xref:bsl/basic_string-0f3/data-06.adoc[data]() const noexcept; ---- [.small]#xref:bsl/basic_string-0f3/data-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#