Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Describes an input iterator that sequences through the file names in a file system directory. For an iterator X, the expression *X evaluates to a basic_directory_entry object that wraps a file name and anything that's known about the status of the associated file.
template<class Path>
class basic_directory_iterator : public iterator<input_iterator_tag, basic_directory_entry<Path> >;
Remarks
The class stores an object of type Path, which represents the current file name in the directory sequence. Path can be either a basic_path or a type that's derived from basic_path.
Members
Public Typedefs
Name |
Description |
---|---|
basic_directory_iterator::path_type |
A synonym for template parameter Path. |
basic_directory_iterator::string_type |
A synonym for the string type Path::string_type. |
basic_directory_iterator::value_type |
A synonym for basic_directory_entry<Path>. |
Public Constructors
Name |
Description |
---|---|
basic_directory_iterator::basic_directory_iterator Constructor |
Constructs a basic_directory_iterator object. |
Public Operators
Name |
Description |
---|---|
Retrieves the stored Path object. |
|
Reads and stores the next Path object. |
|
Assignment operator for the current Path object. |
|
Returns &**this. |
Requirements
Header: filesystem
Namespace: std::tr2::sys