STD::FILESYSTEM_RECURSIVE_DIRECTORY_ITERATOR(3)
π NAME
std::filesystem::recursive_directory_iterator β the iterator type for recursively traversing a directory hierarchy, bestie. This is the std::filesystem::recursive_directory_iterator(3) page from the Library Functions Manual, and yes, we're gonna get through every single signature together. π«Ά
β¨ SYNOPSIS β¨
πΈ Public Types
typedef ptrdiff_t difference_typeβ the difference type. Slay.typedef input_iterator_tag iterator_categoryβ the iterator category isinput_iterator_tag.typedef const directory_entry * pointerβ pointer type:const directory_entry *.typedef const directory_entry & referenceβ reference type:const directory_entry &.typedef directory_entry value_typeβ value type:directory_entry.
π Public Member Functions
recursive_directory_iterator (const path &__p)β constructor that takesconst path &__p.recursive_directory_iterator (const path &__p, directory_options __options)β constructor that takesconst path &__panddirectory_options __options.recursive_directory_iterator (const path &__p, directory_options __options, error_code &__ec)β constructor that takesconst path &__p,directory_options __options, anderror_code &__ec.recursive_directory_iterator (const path &__p, error_code &__ec)β constructor that takesconst path &__panderror_code &__ec.recursive_directory_iterator (const recursive_directory_iterator &)=defaultβ defaulted copy constructor. Iconic behavior.recursive_directory_iterator (recursive_directory_iterator &&)=defaultβ defaulted move constructor. Also iconic.int depth () const noexceptβ returnsint, and it's markedconst noexcept.void disable_recursion_pending () noexceptβ returnsvoid, markednoexcept.recursive_directory_iterator & increment (error_code &__ec)β takeserror_code &__ecand returnsrecursive_directory_iterator &.const directory_entry & operator* () const noexceptβ returnsconst directory_entry &, markedconst noexcept.recursive_directory_iterator & operator++ ()β returnsrecursive_directory_iterator &.__directory_iterator_proxy operator++ (int)β returns__directory_iterator_proxy.const directory_entry * operator-> () const noexceptβ returnsconst directory_entry *, markedconst noexcept.recursive_directory_iterator & operator= (const recursive_directory_iterator &__rhs) noexceptβ copy assignment, takesconst recursive_directory_iterator &__rhs, returnsrecursive_directory_iterator &, markednoexcept.recursive_directory_iterator & operator= (recursive_directory_iterator &&__rhs) noexceptβ move assignment, takesrecursive_directory_iterator &&__rhs, returnsrecursive_directory_iterator &, markednoexcept.directory_options options () const noexceptβ returnsdirectory_options, markedconst noexcept.void pop ()β returnsvoid, no arguments.void pop (error_code &)β returnsvoid, takeserror_code &.bool recursion_pending () const noexceptβ returnsbool, markedconst noexcept.
π¦ Friends
uintmax_t filesystem::remove_all (const path &)β friend function with this exact signature.uintmax_t filesystem::remove_all (const path &, error_code &)β friend function with this exact signature.bool operator!= (const recursive_directory_iterator &__lhs, const recursive_directory_iterator &__rhs) noexceptβ friend comparison, markednoexcept.bool operator== (const recursive_directory_iterator &__lhs, const recursive_directory_iterator &__rhs) noexceptβ friend comparison, markednoexcept.
π Related Functions
Heads up, bestie: these are not member functions. They're related functions, and here's every detail.
recursive_directory_iterator begin (recursive_directory_iterator __iter) noexceptβ enables range-basedforusingrecursive_directory_iterator. Markednoexcept.recursive_directory_iterator end (recursive_directory_iterator) noexceptβ returns a past-the-endrecursive_directory_iterator. Markednoexcept.
π Detailed Description
Iterator type for recursively traversing a directory hierarchy. That's the whole vibe: recursive directory traversal iterator energy. π
π Author
Generated automatically by Doxygen for libstdc++ from the source code.
Cute little sign-off time: source/version is libstdc++, and the date is Wed Oct 7 2026. Byeee, bestie β go traverse those directories recursively and safely. π¦β¨π
π¦ where this page comes from
- centos-stream 9: libstdc++-docs 11.5.0-16.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms