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
filebuf
filebuf::filebuf
filebuf::~filebuf
member functions:
filebuf::close
filebuf::is_open
filebuf::open
virtual members:
filebuf::imbue
filebuf::overflow
filebuf::pbackfail
filebuf::seekoff
filebuf::seekpos
filebuf::setbuf
filebuf::showmanyc
filebuf::sync
filebuf::uflow
filebuf::underflow


filebuf::showmanyc

virtual protected member function
int showmanyc ( );

Get number of characters available in the sequence

This member function (to be read s-how-many-c) is called to get an estimate on the number of characters available in the associated input sequence when the get pointer has reached the apparent end of the associated sequence (still, characters may be available after an underflow, and their count is what the return value of this function is expected to be).

The public member function in_avail of the parent class streambuf calls this virtual member function to perform this action when the get pointer has reached the end pointer (or when it is set to null).

This member function overrides the inherited virtual member streambuf::showmanyc.

Parameters

none

Return Value

An estimate on the number of characters remaining to be read in the associated character sequence after an underflow when no read positions are available at the get pointer.

Basic template member declaration

( basic_filebuf<charT,traits> )
 
int showmanyc ( );


See also