std::filesystem::directory_entry::operator=

directory_entry& operator=( const directory_entry& other ) = default;
(1) (C++17 起)
directory_entry& operator=( directory_entry&& other ) noexcept = default;
(2) (C++17 起)

other 的内容(路径及缓存属性,若存在)替换该 directory_entry 的内容。

directory_entry 的复制与移动赋值运算符均为默认。

目录

参数

other - 另一个 directory_entry

返回值

*this

示例

参阅

赋值内容
(公开成员函数)

版本历史

  • (当前 | 先前) 2017年4月30日 (日) 22:48Fruderica讨论 | 贡献. . (763字节) (+763). . (以“{{cpp/filesystem/directory_entry/title|operator{{=}}}} {{cpp/filesystem/directory_entry/navbar}} {{dcl begin}} {{dcl | since=c++17 | num=1 | 1= directory_entry& oper...”为内容创建页面)