다음을 통해 공유


prev

역순으로 지정된 횟수 만큼 반복하고 새 반복기 위치를 반환합니다.

template<class BidirectionalIterator>
  BidirectionalIterator prev(
    BidirectionalIterator _First,
    typename iterator_traits<BidirectionalIterator>::difference_type
        _Off = 1
    );

매개 변수

  • _First
    현재 위치입니다.

  • _Off
    The number of times to iterate.

속성 값/반환 값

Returns the new iterator position after iterating _Off times.

설명

The template function returns next decremented off times.

요구 사항

헤더: <iterator>

네임스페이스: std

참고 항목

참조

<iterator>

advance(STL 샘플)

표준 템플릿 라이브러리