# std::experimental::filesystem::recursive_directory_iterator::operator*, std::experimental::filesystem::recursive_directory_iterator::operator->

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

Accesses the pointed-to directory_entry.

## Official Specification Summary (cppreference)

```cpp
const directory_entry& operator*() const; // (1) (filesystem TS)
const directory_entry* operator->() const; // (2) (filesystem TS)
```

Accesses the pointed-to `directory_entry`.

The result of `operator*` or `operator->` on the end iterator is undefined behavior.

### Parameters

(none)

### Return value

1) Value of the `directory_entry` referred to by this iterator.

2) Pointer to the `directory_entry` referred to by this iterator.

### Exceptions

May throw implementation-defined exceptions.

### See also

- [`operator*`](https://en.cppreference.com/w/cpp/experimental/fs/directory_iterator/operator*), [`operator->`](https://en.cppreference.com/w/cpp/experimental/fs/directory_iterator/operator*): accesses the pointed-to entry (public member function of `std::experimental::filesystem::directory_iterator`)

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