basic_ostream::tellp

在输出流中报告位置。

pos_type tellp( );

返回值

确定在输出流。

备注

如果成员函数 rdbufpubseekoff失败false,则返回->(0,cur英寸)。 否则,返回 pos_type(- 1)。

示例

使用 tellp的示例,请参见 seekp

要求

页眉: <ostream>

命名空间: std

请参见

参考

basic_ostream 类

iostream 编程

iostreams 约定