fpos::operator-

递减文件位置的。

streamoff operator-(
   const fpos<Statetype>& _Right
) const;
fpos<Statetype> operator-(
   streamoff _Off
) const;

参数

  • _Right
    文件位置。

  • _Off
    流偏移量。

返回值

第一个成员函数返回 (streamoff)*this - (streamoff)_Right。 第二个成员函数返回 fpos(*this) -= _Off。

示例

用于 operator-示例参见 运算符。=

要求

页眉: <ios>

命名空间: std

请参见

参考

fpos 类

iostream 编程

iostreams 约定