bsl::basic_stringbuf::basic_stringbuf

Create a basic_stringbuf by moving from initialString.

Synopsis

Declared in <bslstl_stringbuf.h>

basic_stringbuf(
    BloombergLP::bslmf::MovableRef<StringType> initialString,
    allocator_type const& allocator);

Description

Create a basic_stringbuf object. Use the specified initialString indicating the initial sequence of characters that this buffer will access or manipulate. Optionally specify the allocator used to supply memory. initialString is left in a valid but unspecified state.

Parameters

NameDescription
initialStringinitial character sequence moved into the buffer
allocatorallocator used to supply memory