Namespaces
Variants

std::experimental::filesystem::recursive_directory_iterator:: operator++, increment

From cppreference.net
recursive_directory_iterator & operator ++ ( ) ;
(파일시스템 TS)
recursive_directory_iterator & increment ( error_code & ec ) ;
(파일시스템 TS)

반복자를 다음 항목으로 이동합니다.

현재 순회 중인 디렉토리에 더 이상 항목이 없으면 상위 디렉토리에서 순회가 재개됩니다. 상위 디렉토리에 순회 가능한 형제 항목이 없는 경우 이 과정이 반복됩니다. 재귀적으로 순회된 디렉토리 계층 구조의 최상위 부모에 도달하면( depth ( ) == 0 ) , * this 는 끝 반복자로 설정됩니다.

그렇지 않으면, * this 가 디렉터리를 참조하는 경우, 다음 조건이 충족되면 해당 디렉터리로 순회됩니다:

  • disable_recursion_pending() 이 이번 증가(increment) 전에 호출되지 않았으며, 즉 recursion_pending ( ) == true 입니다.
  • 디렉토리가 심볼릭 링크가 아니거나 심볼릭 링크 따라하기가 활성화된 경우, 즉
! is_symlink ( this - > symlink_status ( ) ) ||
( options ( ) & directory_options :: follow_directory_symlink ) ! = 0 )
.

매개변수

ec - 오류 상태를 저장할 에러 코드

반환값

* this

예외

1) filesystem_error 오류가 발생하는 경우. 오류 코드는 실패를 야기한 오류에 대한 적절한 오류 코드로 설정됩니다.
2)
noexcept 명세:
noexcept