STD::FILESYSTEM::RECURSIVE_DIRECTORY_ITERATOR(3)
π NAME π
okay bestie, welcome to the whole entire vibe of std::filesystem::recursive_directory_iterator β it's literally the iterator type for recursively traversing a directory hierarchy. yes. all of it. every subfolder. every sub-subfolder. she goes deep. πΈ
this is straight out of the Library Functions Manual, so you know it's the real deal. π«Ά
β¨ SYNOPSIS β¨
#include <filesystem>
π Public Types π
typedef ptrdiff_t difference_typetypedef input_iterator_tag iterator_categorytypedef const directory_entry * pointertypedef const directory_entry & referencetypedef directory_entry value_type
π¦ Public Member Functions π¦
recursive_directory_iterator (const path &__p)recursive_directory_iterator (const path &__p, directory_options __options)recursive_directory_iterator (const path &__p, directory_options __options, error_code &__ec)recursive_directory_iterator (const path &__p, error_code &__ec)recursive_directory_iterator (const recursive_directory_iterator &)=defaultrecursive_directory_iterator (recursive_directory_iterator &&)=defaultint depth () const noexceptvoid disable_recursion_pending () noexceptrecursive_directory_iterator & increment (error_code &__ec)const directory_entry & operator* () const noexceptrecursive_directory_iterator & operator++ ()__directory_iterator_proxy operator++ (int)const directory_entry * operator-> () const noexceptrecursive_directory_iterator & operator= (const recursive_directory_iterator &__rhs) noexceptrecursive_directory_iterator & operator= (recursive_directory_iterator &&__rhs) noexceptbool operator== (default_sentinel_t) const noexceptdirectory_options options () const noexceptvoid pop ()void pop (error_code &)bool recursion_pending () const noexcept
π Friends π
uintmax_t filesystem::remove_all (const path &)uintmax_t filesystem::remove_all (const path &, error_code &)bool operator== (const recursive_directory_iterator &__lhs, const recursive_directory_iterator &__rhs) noexcept
π DETAILED DESCRIPTION π
Iterator type for recursively traversing a directory hierarchy.
β Since β
C++17
(so she's been iconic since C++17, no cap π )
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
that's the whole page bestie, every flag, every overload, every noexcept β nothing skipped, nothing invented, fr fr. π
later, legend β this was libstdc++'s very own std::files...ry_iterator(3) page, and now you're basically an expert. go traverse something recursively (respectfully). π§π
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms