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

Constructors

== Synopses

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

Create a `StringBufContainer` by move&hyphen;constructing from `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/StringBufContainer/2constructor-08.adoc[StringBufContainer](xref:bsl/StringBufContainer.adoc[StringBufContainer]&& original);
----

[.small]#xref:bsl/StringBufContainer/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/StringBufContainer/2constructor-05.adoc[StringBufContainer](ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-05.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` with the specified mode and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/StringBufContainer/2constructor-0a87.adoc[StringBufContainer](
    std::ios&lowbar;base::openmode modeBitMask,
    ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-0a87.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/StringBufContainer/2constructor-096.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` from the specified initial string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/StringBufContainer/2constructor-0e.adoc[StringBufContainer](
    xref:bsl/StringBufContainer.adoc[StringType] const& initialString,
    ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` by move&hyphen;constructing from `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/StringBufContainer/2constructor-0cc.adoc[StringBufContainer](
    xref:bsl/StringBufContainer.adoc[StringBufContainer]&& original,
    ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-0cc.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` from a string&hyphen;view&hyphen;like initial value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE&gt;
xref:bsl/StringBufContainer/2constructor-0a8a.adoc[StringBufContainer](
    STRING&lowbar;VIEW&lowbar;LIKE&lowbar;TYPE const& initialString,
    std::ios&lowbar;base::openmode modeBitMask);
----

[.small]#xref:bsl/StringBufContainer/2constructor-0a8a.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/StringBufContainer/2constructor-098.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` from an initial string and open mode&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/StringBufContainer/2constructor-0c8.adoc[StringBufContainer](
    xref:bsl/StringBufContainer.adoc[StringType] const& initialString,
    std::ios&lowbar;base::openmode modeBitMask,
    ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-0c8.adoc[_» more&period;&period;&period;_]#

Create a `StringBufContainer` from the specified character range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;ITER&gt;
xref:bsl/StringBufContainer/2constructor-02.adoc[StringBufContainer](
    STRING&lowbar;ITER first,
    STRING&lowbar;ITER last,
    std::ios&lowbar;base::openmode modeBitMask,
    ALLOCATOR const& allocator);
----

[.small]#xref:bsl/StringBufContainer/2constructor-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object from which to move&hyphen;construct
| *allocator*
| allocator used to supply memory
| *modeBitMask*
| open mode for the contained stream buffer
| *initialString*
| initial character sequence moved into the buffer
| *first*
| beginning of the character range
| *last*
| end of the character range
|===


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