[#bsl-basic_istringstream-get-05]
= xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic&lowbar;istringstream]::get
:relfileprefix: ../../
:mrdocs:

Extraction into another streambuf&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lowbar;&lowbar;istream&lowbar;type&
get(
    &lowbar;&lowbar;streambuf&lowbar;type& &lowbar;&lowbar;sb,
    char&lowbar;type &lowbar;&lowbar;delim);
----

== Description

Characters are extracted and inserted into _&lowbar;&lowbar;sb_ until one of the following happens&colon;

* the input sequence reaches EOF
* insertion into the output buffer fails (in this case, the character that would have been inserted is not extracted)
* the next character equals _&lowbar;&lowbar;delim_ (in this case, the character is not extracted)
* an exception occurs (and in this case is caught)

If no characters are stored, failbit is set in the stream&apos;s error state&period;

== Return Value

&ast;this

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;sb*
| A streambuf in which to store data&period;
| *&lowbar;&lowbar;delim*
| A &quot;stop&quot; character&period;
|===


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