[#bsl-basic_string-0fb-data-01]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic&lowbar;string&lt;char&gt;]::data
:relfileprefix: ../../
:mrdocs:

`data` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

Return an address providing modifiable access to the null&hyphen;terminated buffer of `length() &plus; 1` characters whose contents are identical to the value of this string&period; Note that any call to the string destructor or any of its manipulators invalidates the returned pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char*
xref:bsl/basic_string-0fb/data-0a.adoc[data]() noexcept;
----

[.small]#xref:bsl/basic_string-0fb/data-0a.adoc[_» more&period;&period;&period;_]#

Return an address providing non&hyphen;modifiable access to the null&hyphen;terminated buffer of `length() &plus; 1` characters whose contents are identical to the value of this string&period; Note that any call to the string destructor or any of its manipulators invalidates the returned pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const*
xref:bsl/basic_string-0fb/data-06.adoc[data]() const noexcept;
----

[.small]#xref:bsl/basic_string-0fb/data-06.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
