[#bsl-basic_stringbuf-view] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::view :relfileprefix: ../../ :mrdocs: Return a `string_view` containing the currently buffered sequence of characters. If this object was created only in input mode, the resultant `ViewType` contains the character sequence in the range `[eback(), egptr())]`. If `modeBitMask & ios_base::out` specified at construction is nonzero then the resultant `StringType` contains the character sequence in the range `[pbase(), high_mark)]`, where `high_mark` represents the position one past the highest initialized character in the buffer. Otherwise this object has been created in neither input nor output mode and a zero length `ViewType` is returned. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_stringbuf.adoc[basic_stringbuf<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::ViewType] view() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#