basic_directory_entry::basic_directory_entry Constructor

Constructs a basic_directory_entry object.

basic_directory_entry();
explicit basic_directory_entry(
   const path_type& Pval,
   file_status Statarg = file_status(),
   file_status Symstatarg = file_status()
);
basic_directory_entry(
   const basic_directory_entry& Right
);
basic_directory_entry(
   basic_directory_entry&& Right
);

Parameters

  • Pval
    A Path object. Path can be either a basic_path or a type that is derived from basic_path.

  • Statarg
    A file_status object that represents the status of the file that is referenced by Pval.

  • Symstatarg
    A file_status object that represents the symbolic link status of the file that is reference by Pval.

  • Right
    A basic_directory_entry object.

Remarks

The first constructor default-initializes the stored objects.

The second constructor initializes the stored Path value to Pval, the stored file status to Statarg, and the stored symbolic link status to Symstatarg.

The third constructor copy-constructs the stored objects from the corresponding objects in Right.

The fourth constructor move-constructs the stored objects from the corresponding objects in Right.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_directory_entry Class

<filesystem>