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

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

== Synopsis

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

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

== Description

Create a `StringBufContainer` object whose buffer contains the characters in the specified `&lsqb;first, last)&rsqb;` range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first*
| beginning of the character range
| *last*
| end of the character range
| *modeBitMask*
| open mode for the contained stream buffer
| *allocator*
| allocator used to supply memory
|===


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