Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

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

Accesses the pointed-to directory_entry.

NotebookLM
const std::filesystem::directory_entry& operator*() const;
(1) (since C++17)
const std::filesystem::directory_entry* operator->() const;
(2) (since C++17)

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

accesses the pointed-to entry
(public member function of std::filesystem::directory_iterator)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.