Share via


streampos

バッファーのポインターまたはファイル ポインターの現在位置を保持します。

typedef fpos<mbstate_t> streampos;

解説

型は 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;
}
  

必要条件

ヘッダー : <ios>

名前空間: std

参照

関連項目

fpos Class

入出力ストリームのプログラミング

入出力ストリームの規則

その他の技術情報

fpos のメンバー

<ios> メンバー