다음을 통해 공유


fpos::operator-

Decrements a file-position indicator.

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

매개 변수

  • _Right
    File position.

  • _Off
    Stream offset.

반환 값

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

예제

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

요구 사항

Header: <ios>

네임스페이스: std

참고 항목

참조

fpos 클래스

iostream 프로그래밍

iostreams 규칙