다음을 통해 공유


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>

네임스페이스: std

참고 항목

참조

fpos 클래스

iostream 프로그래밍

iostreams 규칙

기타 리소스

fpos 멤버

<ios> 멤버