basic_filebuf::underflow

virtual int_type underflow();

The protected virtual member function endeavors to extract the current element c from the input stream, and return the element as T::to_int_type(c). It can do so in various ways:

If the function cannot succeed, it returns T::eof(). Otherwise, it returns c, converted as described above.