basic_streambuf::showmanyc

virtual int showmanyc();

The protected virtual member function returns a count of the number of characters that can be extracted from the input stream without the program experiencing an indefinite wait. The default behavior is to return zero.