directory_entry::assign Method

Stores a specifiedpath 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 path or a type that is derived from 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

directory_entry Class

<filesystem>