SysTutorials

Linux Manual Pages › Section 3

stdfilesystemdirectory_iteratoroperatorstdfilesystemdirectory_iteratoroperator(3)

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

Synopsis

const directory_entry &operator*() const;
(since C++ 17)
    const directory_entry *
    operator->() const;

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

(none)

See also

           accesses the pointed-to entry operator* (public member function of std::filesystem::recursive_directory_iterator) operator->