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

Unextracting the previous character&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lowbar;&lowbar;istream&lowbar;type&
unget();
----

== Description

If `rdbuf()` is not null, calls `rdbuf()&hyphen;&gt;sungetc(c)&period;`

If `rdbuf()` is null or if `sungetc()` fails, sets badbit in the error state&period;

[NOTE]
====
This function first clears eofbit&period; Since no characters are extracted, the next call to `gcount()` will return 0, as required by DR 60&period;

====

== Return Value

&ast;this


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