bsl::basic_string::data

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.

CHAR_TYPE*
data() noexcept;
» 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.

CHAR_TYPE const*
data() const noexcept;
» more...