Share via


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

Reference

basic_streambuf Class

iostream Programming

iostreams Conventions