# std::experimental::filesystem::recursive_directory_iterator::pop

> C++ Atlas: `cppatlas.com/w/cpp/experimental/fs/recursive_directory_iterator/pop` | Source: https://en.cppreference.com/w/cpp/experimental/fs/recursive_directory_iterator/pop | Domain: Technical specifications

Moves the iterator one level up in the directory hierarchy.

## Official Specification Summary (cppreference)

```cpp
void pop(); // (filesystem TS)
```

Moves the iterator one level up in the directory hierarchy.

If the parent directory is outside directory hierarchy that is iterated on (i.e. `depth() == 0`), sets `*this` to an end directory iterator.

### Parameters

(none)

### Return value

(none)

### Exceptions

> Note: This section is incomplete

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/fs/recursive_directory_iterator/pop (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.