std::basic_streambuf::showmanyc

From Cppreference

Jump to: navigation, search
protected:
std::streamsize showmanyc();

Estimates the number of characters available in the sequence. underflow() is guaranteed not to return traits::eof() until at least that many characters are extracted.

Contents

[edit] Parameters

(none)

[edit] Return value

The number of characters available in the sequence, or -1 if no characters are available. In that case, underflow() and uflow() will fail.

The base class version returns 0.

[edit] Example

[edit] See also

obtains the number of characters immediately available in the get area
(public member function)