std::filesyste...ectory_iterator(3cxx)
π std::filesystem::directory_iterator
okay bestie, welcome to the std::filesyste...ectory_iterator(3cxx) manual page. todayβs main character is std::filesystem::directory_iterator, and we are keeping every signature, default, noexcept, friend, and reference exactly as written. no cap, no cuts β¨
πΈ NAME
std::filesystem::directory_iterator β iterator type for traversing the entries in a single directory. periodt. π
β¨ SYNOPSIS
#include <filesystem>
π Public Types
the whole type cast, 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
every single public member function, in the order the page gives them:
directory_iterator (const directory_iterator &__rhs)=defaultdirectory_iterator (const path &__p)directory_iterator (const path &__p, directory_options __options)directory_iterator (const path &__p, directory_options __options, error_code &__ec)directory_iterator (const path &__p, error_code &__ec)directory_iterator (directory_iterator &&__rhs) noexcept=defaultdirectory_iterator & increment (error_code &__ec)const directory_entry & operator* () const noexceptdirectory_iterator & operator++ ()__directory_iterator_proxy operator++ (int)const directory_entry * operator-> () const noexceptdirectory_iterator & operator= (const directory_iterator &__rhs)=defaultdirectory_iterator & operator= (directory_iterator &&__rhs) noexcept=defaultbool operator== (default_sentinel_t) const noexcept
π Friends
the friend squad, exactly as listed:
- friend equality β exact wrapped signature:
bool operator== (const directory_iterator &__lhs, const
directory_iterator &__rhs) noexcept
- friend class β
class recursive_directory_iterator
π Related Symbols
quick note, bestie: (Note that these are not member symbols.)
directory_iterator begin (directory_iterator __iter) noexceptβ enables range-basedforusingdirectory_iterator. β¨directory_iterator end (directory_iterator) noexceptβ returns a past-the-enddirectory_iterator.recursive_directory_iterator begin (recursive_directory_iterator __iter) noexceptβ enables range-basedforusingrecursive_directory_iterator.recursive_directory_iterator end (recursive_directory_iterator) noexceptβ returns a past-the-endrecursive_directory_iterator.
π₯ Detailed Description
the detailed description is literally: βIterator type for traversing the entries in a single directory.β thatβs the vibe, and weβre not adding extra lore. π«Ά
β Since
C++17 β iconic, honestly.
π Author
Generated automatically by Doxygen for libstdc++ from the source code. slay, Doxygen. π
okay thatβs the whole page, bestie. the final footer/source line is exactly libstdstd::filesyste...ectory_iterator(3cxx) β and thatβs the date-stamp energy we have, mwah πβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms