basic_directory_entry::replace_leaf 方法

替换存储的 leaf 并更新存储文件名的状态.

void replace_leaf(
   const string_type& Str,
   file_status Statarg = file_status(),
   file_status Symstatarg = file_status()
);

参数

  • Str
    包含新值的字符串。

  • Statarg
    表示文件的状态由该存储的文件名引用的 file_status 对象。

  • Symstatarg
    表示文件的符号字符串状态是引用该存储的文件名的 file_status 对象。

要求

标头: filesystem

命名空间: std::tr2::sys

请参见

参考

basic_directory_entry 类

<filesystem>