Freigeben über


fpos::operator-

Decrements a file-position indicator.

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

Parameters

  • _Right
    File position.

  • _Off
    Stream offset.

Return Value

The first member function returns (streamoff)*this - (streamoff)_Right. The second member function returns fpos(*this) -= _Off.

Example

See operator!= for a sample of using operator-.

Requirements

Header: <ios>

Namespace: std

See Also

Concepts

fpos Class

fpos Members

iostream Programming

iostreams Conventions