Namespaces
Variants
Views
Actions

std::basic_streambuf::showmanyc

From cppreference.com
< cpp‎ | io‎ | basic streambuf
Revision as of 07:52, 6 December 2012 by Cubbi (Talk | contribs)

 
 
 
 
protected:
std::streamsize showmanyc();

Estimates the number of characters available for input in the associated character sequence. Template:rlpf is guaranteed not to return Traits::eof() until at least that many characters are extracted.

Contents

Parameters

(none)

Return value

The number of characters that are certainly available in the associated character sequence, or -1 if showmanyc can determine, without blocking, that no characters are available. If showmanyc returns -1, Template:rlpf and Template:rlpf will definitely return Traits::eof.

The base class version returns 0, which has the meaning of "unsure if there are characters available in the associated sequence".

Example

See also

Template:cpp/io/basic streambuf/dcl list in availTemplate:cpp/io/basic filebuf/dcl list showmanyc