# std::experimental::filesystem::directory_iterator::operator=

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

Advances the iterator to the next entry.

## Official Specification Summary (cppreference)

```cpp
directory_iterator& operator++();

directory_iterator& increment( error_code& ec ) noexcept; // (filesystem TS)
```

Advances the iterator to the next entry.

> Note: This section is incomplete

### Parameters

- `ec` - error code to store error status to

### Return value

`*this`

### Exceptions

1)

   > Note: This section is incomplete

2)

   `noexcept` specification:

   `noexcept`

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