std::experimental::filesystem::recursive_directory_iterator::recursion_pending - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::recursive_directory_iterator::recursion_pending

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | recursive directory iterator

bool recursion_pending() const; |  | (filesystem TS)

Returns true if the next increment will cause the directory currently referred to by *this to be iterated into.

This function returns true immediately after construction or an increment. Recursion can be disabled via disable_recursion_pending().

### [edit] Parameters

(none)

### [edit] Return value

true if the next increment will iterate into the currently referred directory, false otherwise.

### [edit] Exceptions

(none)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/recursive_directory_iterator/recursion_pending&oldid=68667"