libstdc++
std::filesystem::directory_iterator Class Reference

#include <fs_dir.h>

Public Types

typedef ptrdiff_t difference_type
 
typedef input_iterator_tag iterator_category
 
typedef const directory_entrypointer
 
typedef const directory_entryreference
 
typedef directory_entry value_type
 

Public Member Functions

 directory_iterator (const directory_iterator &__rhs)=default
 
 directory_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=default
 
directory_iteratorincrement (error_code &__ec)
 
const directory_entryoperator* () const noexcept
 
directory_iteratoroperator++ ()
 
__directory_iterator_proxy operator++ (int)
 
const directory_entryoperator-> () const noexcept
 
directory_iteratoroperator= (const directory_iterator &__rhs)=default
 
directory_iteratoroperator= (directory_iterator &&__rhs) noexcept=default
 
bool operator== (default_sentinel_t) const noexcept
 

Friends

bool operator== (const directory_iterator &__lhs, const directory_iterator &__rhs) noexcept
 
class recursive_directory_iterator
 

Related Symbols

(Note that these are not member symbols.)

directory_iterator begin (directory_iterator __iter) noexcept
 
directory_iterator end (directory_iterator) noexcept
 

Detailed Description

Iterator type for traversing the entries in a single directory.

Definition at line 375 of file bits/fs_dir.h.

Member Typedef Documentation

◆ difference_type

typedef ptrdiff_t std::filesystem::directory_iterator::difference_type

Definition at line 379 of file bits/fs_dir.h.

◆ iterator_category

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ directory_iterator() [1/4]

std::filesystem::directory_iterator::directory_iterator ( const path __p)
inlineexplicit

Definition at line 387 of file bits/fs_dir.h.

◆ directory_iterator() [2/4]

std::filesystem::directory_iterator::directory_iterator ( const path __p,
directory_options  __options 
)
inline

Definition at line 390 of file bits/fs_dir.h.

◆ directory_iterator() [3/4]

std::filesystem::directory_iterator::directory_iterator ( const path __p,
error_code __ec 
)
inline

Definition at line 393 of file bits/fs_dir.h.

◆ directory_iterator() [4/4]

std::filesystem::directory_iterator::directory_iterator ( const path __p,
directory_options  __options,
error_code __ec 
)
inline

Definition at line 396 of file bits/fs_dir.h.

Member Function Documentation

◆ operator++()

__directory_iterator_proxy std::filesystem::directory_iterator::operator++ ( int  )
inline

Definition at line 417 of file bits/fs_dir.h.

◆ operator->()

const directory_entry * std::filesystem::directory_iterator::operator-> ( ) const
inlinenoexcept

Definition at line 413 of file bits/fs_dir.h.

◆ operator==()

bool std::filesystem::directory_iterator::operator== ( default_sentinel_t  ) const
inlinenoexcept

Definition at line 435 of file bits/fs_dir.h.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const directory_iterator __lhs,
const directory_iterator __rhs 
)
friend

Definition at line 425 of file bits/fs_dir.h.

◆ recursive_directory_iterator

friend class recursive_directory_iterator
friend

Definition at line 449 of file bits/fs_dir.h.


The documentation for this class was generated from the following file: