Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
IOstream Library
manipulators
classes:
filebuf
fstream
ifstream
ios
iostream
ios_base
istream
istringstream
ofstream
ostream
ostringstream
streambuf
stringbuf
stringstream
objects:
cerr
cin
clog
cout
types:
fpos
streamoff
streampos
streamsize
stringbuf
stringbuf::stringbuf
public members:
stringbuf::str
virtual members:
stringbuf::overflow
stringbuf::pbackfail
stringbuf::seekoff
stringbuf::seekpos
stringbuf::setbuf
stringbuf::underflow


stringbuf::underflow

virtual protected member function
int underflow ( );

Get character

Returns the character at the current get position, if one is available, otherwise it returns EOF (or traits::eof for other traits).

This member function overrides the virtual member streambuf::underflow, which is called by other member functions of streambuf when a new character is to be read at the get pointer position gptr but it has reached the end pointer egptr.

Parameters

none

Return Value

The character available at the get position, unless the get pointer is past the end of the character sequence, in which case it returns EOF (or traits::eof for other traits).

Basic template member declaration

( basic_stringbuf<charT,traits,Allocator> )
1
2
typedef traits::int_type int_type;
int_type underflow ( );


See also