Freigeben über


basic_streambuf::stossc

Move past the current element in the stream.

void stossc( );

Remarks

The member function calls sbumpc. Note that an implementation is not required to supply this member function.

Example

// basic_streambuf_stossc.cpp
// compile with: /EHsc
#include <iostream>
#include <fstream>

int main( ) 
{
   using namespace std;
   ifstream myfile( "basic_streambuf_stossc.txt", ios::in );

   myfile.rdbuf( )->stossc( );
   char i = myfile.rdbuf( )->sgetc( );
   cout << i << endl;
}

Input: basic_streambuf_stossc.txt

testing

Output

e

Requirements

Header: <streambuf>

Namespace: std

See Also

Concepts

basic_streambuf Class

basic_streambuf Members

iostream Programming

iostreams Conventions