basic_streambuf::sgetc

int_type sgetc();

If a read position is available, the member function returns T::to_int_type( *gptr()) Otherwise, it returns underflow().