int_type peek();
The unformatted input function extracts an element, if possible, as if by returning rdbuf()->sgetc(). Otherwise, it returns T::eof().
rdbuf()->
sgetc
()
T::
eof