cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : stringbuf : underflow
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
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> )
typedef traits::int_type int_type;
int_type underflow ( );

See also

streambuf::underflow Get character in the case of underflow (virtual protected member function)

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us