Share via


basic_ostream::tellp

Report position in output stream.

pos_type tellp( );

Return Value

Position in output stream.

Remarks

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

Example

See seekp for an example using tellp.

Requirements

Header: <ostream>

Namespace: std

See Also

Reference

basic_ostream Class

iostream Programming

iostreams Conventions