다음을 통해 공유


fpos::operator+=

Increments a file-position indicator.

fpos<Statetype>& operator+=(
    streamoff _Off
);

매개 변수

  • _Off
    The offset by which you want to increment the file-position indicator.

반환 값

The position in the file.

설명

The member function adds _Off to the stored offset member object and then returns *this. For positioning within a file, the result is generally valid only for binary streams that do not have a state-dependent encoding.

예제

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

요구 사항

Header: <ios>

네임스페이스: std

참고 항목

참조

fpos 클래스

iostream 프로그래밍

iostreams 규칙