std::filesystem::recursive_directory_iterator::operator++, (3) - Linux Manuals
std::filesystem::recursive_directory_iterator::operator++,: std::filesystem::recursive_directory_iterator::operator++,
NAME
std::filesystem::recursive_directory_iterator::operator++, - std::filesystem::recursive_directory_iterator::operator++,
Synopsis
recursive_directory_iterator&
recursive_directory_iterator&
Advances the iterator to the next entry. Invalidates all copies of the previous
value of
If there are no more entries left in the currently iterated directory, the iteration
is resumed over the parent directory. The process is repeated if the parent
directory has no sibling entries that can to be iterated on. If the parent of the
directory hierarchy that has been recursively iterated on is reached
candidate entries at depth()
Otherwise, if
conditions are met:
Parameters
ec - error code to store the error status to
Return value
*this
Exceptions
The overload that does not take a std::error_code&
on underlying OS API errors, constructed with the OS error code as the error code
argument. The overload taking a std::error_code&
error code if an OS API call fails, and executes ec.clear()
overload not marked noexcept may throw std::bad_alloc if memory allocation fails.
The following behavior-changing defect reports were applied retroactively to
previously published C++
DR
LWG 3013 C++17