This function is expected to modify the eback, gptr and egptr pointers that define the internal input array in such a way that if there are more characters available in the controlled input sequence after the location represented by streambuf::egptr, at least some of them are made available through this internal input array. In this case, the function returns the new character pointed by the get pointer and advances it one position. Otherwise, if there are no more characters available in the controlled input sequence after the one represented by egptr, the function returns EOF (or traits::eof() for other traits).
This member function overrides the inherited virtual member streambuf::underflow.
The behavior of this member function is the same as the one of underflow except that this function also advances the get pointer by one position.
Parameters
noneReturn Value
The new character available at the current get pointer position, if any. Otherwise, EOF (or traits::eof() for other traits) is returned.Basic template member declaration
( basic_filebuf<charT,traits> )| 1 2 |
|
See also.
| filebuf::underflow | Get character in the case of underflow (virtual protected member function) |
| streambuf::sgetc | Get current character (public member function) |
