bsl::basic_stringbuf::basic_stringbuf

Create a basic_stringbuf object. Use the specified initialString (of a type convertible to basic_string_view<CHAR_TYPE, CHAR_TRAITS> but not to const CHAR_TYPE *) indicating the initial sequence of characters that this buffer will access or manipulate. Optionally specify the allocator used to supply memory. If allocator is not supplied, a default-constructed object of the (template parameter) ALLOCATOR type is used. If the ALLOCATOR argument is of type bsl::allocator (the default), then allocator, if supplied, shall be convertible to bslma::Allocator *. If the ALLOCATOR argument is of type bsl::allocator and allocator is not supplied, the currently installed default allocator will be used to supply to supply memory. This buffer is created with ios_base::in | ios_base::out.

Synopsis

Declared in <bslstl_stringbuf.h>

template<class STRING_VIEW_LIKE_TYPE>
explicit
basic_stringbuf(STRING_VIEW_LIKE_TYPE const& initialString);