다음을 통해 공유


basic_ostream::tellp

Report position in output stream.

pos_type tellp( );

반환 값

Position in output stream.

설명

If fail is false, the member function returns rdbuf-> pubseekoff(0, cur, in). Otherwise, it returns pos_type(-1).

예제

See seekp for an example using tellp.

요구 사항

Header: <ostream>

네임스페이스: std

참고 항목

참조

basic_ostream 클래스

iostream 프로그래밍

iostreams 규칙