Megosztás a következőn keresztül:


basic_directory_iterator Class

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

basic_directory_iterator::operator* Operator

Retrieves the stored Path object.

basic_directory_iterator::operator++ Operator

Reads and stores the next Path object.

basic_directory_iterator::operator= Operator

Assignment operator for the current Path object.

basic_directory_iterator::operator-> Operator

Returns &**this.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

C++ Standard Library Header Files