std::filesyste...ectory_iterator(3cxx)
β¨ NAME β¨
Hey bestie! You're reading the std::filesyste...ectory_iterator(3cxx) manual page, and it's all about:
std::filesystem::recursive_directory_iterator β iterator type for recursively traversing a directory hierarchy. Yes, it goes deep. π
π¦ SYNOPSIS π¦
#include <fs_dir.h>
π Public Types π
Here's the type squad, no skips:
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 π
The whole roster, periodt:
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) 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) noexceptbool operator== (const recursive_directory_iterator &__lhs, const recursive_directory_iterator &__rhs) noexcept
π Related Symbols π
(Note that these are not member symbols.)
recursive_directory_iterator begin (recursive_directory_iterator __iter) noexceptβ enable range-based for usingrecursive_directory_iterator. Yes queen, range-based for! β¨recursive_directory_iterator end (recursive_directory_iterator) noexceptβ return a past-the-endrecursive_directory_iterator. The "we're done here" iterator, periodt. π
π Detailed Description π
This is the iterator type for recursively traversing a directory hierarchy β yes, it goes deep, bestie. π
π Author π
Auto-generated by Doxygen for libstdc++ straight from the source code. No human wrote this by hand, and that's iconic. π€π
And that's a wrap, bestie! This page is brought to you by libstdc++ (the source/version in the footer) and the date that wasn't visible β but we're still slaying. Now go recurse some directories, you absolute icon. π β¨
π¦ where this page comes from
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms