Export (0) Print
Expand All

streampos

Holds the current position of the buffer pointer or file pointer.

typedef fpos<mbstate_t> streampos;

The type is a synonym for fpos<mbstate_t>.

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

int main( ) 
{
   using namespace std;

   ofstream x( "iostream.txt" );
   x << "testing";
   streampos y = x.tellp( );
   cout << y << endl;
}
7

Header: <ios>

Namespace: std

Show:
© 2015 Microsoft