[#bsl-StringBufContainer-2constructor-098]
= xref:bsl.adoc[bsl]::xref:bsl/StringBufContainer.adoc[StringBufContainer]::StringBufContainer
:relfileprefix: ../../
:mrdocs:

Create a `StringBufContainer` by moving from `initialString`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
StringBufContainer(
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;StringType&gt;] initialString,
    std::ios&lowbar;base::openmode modeBitMask,
    ALLOCATOR const& allocator);
----

== Description

Create a `StringBufContainer` object initialized from the specified `initialString` and `modeBitMask`, using the allocator in `initialString` to supply memory&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initialString*
| initial character sequence moved into the buffer
| *modeBitMask*
| open mode for the contained stream buffer
| *allocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
