basic_streambuf::sbumpc
Reads and returns the current element, moving the stream pointer.
int_type sbumpc( );
Return Value
The current element.
Remarks
If a read position is available, the member function returns traits_type::to_int_type( *gptr) and increments the next pointer for the input buffer. Otherwise, it returns uflow.
Example
// basic_streambuf_sbumpc.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
int i = 0;
i = cin.rdbuf( )->sbumpc( );
cout << i << endl;
}
3
FakePre-46c56102618a4162ab46a84e9ca6821b-ad27c7db958f4d0fb8d54efaec71f81a
Requirements
Header: <streambuf>
Namespace: std