[#bsl-basic_istringstream-peek] = xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic_istringstream]::peek :relfileprefix: ../../ :mrdocs: Looking ahead in the stream == Synopsis Declared in `<bslstl_istringstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int_type peek(); ---- == Description If, after constructing the sentry object, `good()` is false, returns `traits::eof().` Otherwise reads but does not extract the next input character. == Return Value The next character, or eof(). [.small]#Created with https://www.mrdocs.com[MrDocs]#