在输出流中报告位置。
pos_type tellp( );
返回值
确定在输出流。
备注
如果成员函数 rdbufpubseekoff失败 为 false,则返回->(0,cur, 英寸)。 否则,返回 pos_type(- 1)。
示例
使用 tellp的示例,请参见 seekp。
要求
页眉: <ostream>
命名空间: std
在输出流中报告位置。
pos_type tellp( );
确定在输出流。
如果成员函数 rdbufpubseekoff失败 为 false,则返回->(0,cur, 英寸)。 否则,返回 pos_type(- 1)。
使用 tellp的示例,请参见 seekp。
页眉: <ostream>
命名空间: std