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

Looking ahead in the stream

== Synopsis

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

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

== Description

If, after constructing the sentry object, `good()` is false, returns `traits&colon;&colon;eof()&period;` Otherwise reads but does not extract the next input character&period;

== Return Value

The next character, or eof()&period;


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