C++ streambuf - underflow



Description

It is used to get character and returns the character at the current get pointer position (gptr), if one is available. Otherwise it returns the end-of-file value (traits_type::eof()).

Declaration

Following is the declaration for std::basic_stringbuf::underflow.

int_type underflow();

Parameters

none

Return Value

It returns the character at the current get pointer position (gptr), if one is available. Otherwise it returns the end-of-file value (traits_type::eof()).

Exceptions

Basic guarantee − if an exception is thrown, the object is in a valid state.

Data races

It accesses the basic_stringbuf object.

streambuf.htm
Advertisements