Create a basic_stringbuf by moving from initialString.

Synopsis

Declared in <bslstl_stringbuf.h>

basic_stringbuf(
    BloombergLP::bslmf::MovableRef<StringType> initialString,
    std::ios_base::openmode modeBitMask,
    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 a modeBitMask indicating whether this buffer may be read from, written to, or both. If modeBitMask is not supplied, this buffer is created with ios_base::in | ios_base::out. Optionally specify the allocator used to supply memory. initialString is left in a valid but unspecified state.

Parameters

Name

Description

initialString

initial character sequence moved into the buffer

modeBitMask

open mode for the stream buffer

allocator

allocator used to supply memory

Created with MrDocs