Create a basic_stringbuf from an initial string and open mode.
Declared in <bslstl_stringbuf.h>
basic_stringbuf(
StringType const& initialString,
std::ios_base::openmode modeBitMask,
allocator_type const& allocator = allocator_type());
Same as the constructor taking const StringType& and const allocator_type&.
| Name | Description |
|---|---|
| initialString | initial character sequence for the buffer |
| modeBitMask | open mode for the stream buffer |
| allocator | allocator used to supply memory |