Namespaces
Variants
Views
Actions

std::basic_streambuf::uflow

From cppreference.com
< cpp‎ | io‎ | basic streambuf
Revision as of 09:23, 31 January 2013 by Cubbi (Talk | contribs)

 
 
 
 
int_type uflow();

Ensures that at least one character is available in the input area by updating the pointers to the input area (if needed). On success returns the value of that character and advances the value of the get pointer by one character. On failure returns traits::eof().

The function may update gptr, egptr and eback pointers to define the location of newly loaded data (if any). On failure, the function ensures that either gptr() == nullptr or gptr() == egptr.

The base class version of the function calls Template:rlpt and increments Template:rlpt.

Contents

Parameters

(none)

Return value

The value of the character that was pointed to by the get pointer before it was advanced by one, or traits::eof() otherwise.

The base class version of the function returns the value returned by Template:rlpt.

Note

The public functions of std::streambuf call this function only if gptr() == nullptr or gptr() >= egptr().

The custom streambuf classes that do not use the get area and do not set the get area pointers in basic_streambuf are required to override this function.

Example

See also

Template:cpp/io/basic streambuf/dcl list underflowTemplate:cpp/io/basic streambuf/dcl list overflow