[#bsl-basic_istringstream-2constructor-032598]
= xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic&lowbar;istringstream]::basic&lowbar;istringstream
:relfileprefix: ../../
:mrdocs:

Create a `basic&lowbar;istringstream` object&period; Use the specified `initialString` indicating the sequence of characters from which input will be streamed&period; Use the specified `modeBitMask` to indicate whether this buffer may be read from, written to, or both&period; Optionally specify the `allocator` used to supply memory&period; If `allocator` is not supplied, a default&hyphen;constructed object of the (template parameter) `ALLOCATOR` type is used&period; If the `ALLOCATOR` argument is of type `bsl&colon;&colon;allocator` (the default), then `allocator`, if supplied, shall be convertible to `bslma&colon;&colon;Allocator &ast;`&period; If the `ALLOCATOR` argument is of type `bsl&colon;&colon;allocator` and `allocator` is not supplied, the currently installed default allocator will be used to supply memory&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class SALLOC&gt;
basic&lowbar;istringstream(
    xref:bsl/basic_string-0faf.adoc[bsl::basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, SALLOC&gt;] const& initialString,
    ios&lowbar;base::openmode modeBitMask,
    xref:bsl/basic_istringstream/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type())
requires !bsl&colon;&colon;is&lowbar;same&lt;ALLOCATOR, SALLOC&gt;&colon;&colon;value;
----


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