Freigeben über


basic_directory_entry::assign Method

Stores a specified Path object, along with two status indicators of the associated file.

void assign(
   const path_type& Pval,
   file_status Statarg = file_status(),
   file_status Symstatarg = file_status()
);

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.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_directory_entry Class

<filesystem>