W3cubDocs

/C++

std::basic_stringstream<CharT,Traits,Allocator>::view

std::basic_string_view<CharT, Traits> view() const noexcept;
(since C++20)

Obtains a std::basic_string_view over the underlying string object. Equivalent to return rdbuf()->view();.

Parameters

(none).

Return value

A std::basic_string_view over the underlying string object.

Example

See also

(C++20)
obtains a view over the underlying character sequence
(public member function of std::basic_stringbuf<CharT,Traits,Allocator>)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/basic_stringstream/view