const charT* c_str() const noexcept;
const charT* data() const noexcept;
Returns: A pointer p such that p + i == &operator[](i) for each
i in [0, size()].
Complexity: Constant time.
Requires:
The program shall not alter any of the values stored in the character array.
charT* data() noexcept;
Returns: A pointer p such that p + i == &operator[](i) for each
i in [0, size()].
Complexity: Constant time.
Requires:
The program shall not alter the value stored at p + size().
operator basic_string_view<charT, traits>() const noexcept;
Effects: Equivalent to:
return basic_string_view<charT, traits>(data(), size());
allocator_type get_allocator() const noexcept;
Returns:
A copy of the
Allocator
object used to construct the string or, if that allocator has been replaced, a
copy of the most recent replacement.