std::filesystem::filesystem_error::operator=
来自 cppreference.cn
< cpp | filesystem | filesystem error
filesystem_error& operator=( const filesystem_error& other ) noexcept; |
(C++17 起) | |
用 other 的内容赋值。如果 *this 和 other 都具有动态类型 std::filesystem::filesystem_error
,则赋值后 std::strcmp(what(), other.what()) == 0。
目录 |
[编辑] 参数
其他 | - | 另一个用于赋值的 filesystem_error 对象 |
[编辑] 返回值
*this
[编辑] 注意
典型的实现会将 path1() 和 path2() 引用的 path
对象存储在引用计数存储中。因此,赋值后 *this 和 other 通常会共享它们的 path
对象。
[编辑] 示例
本节不完整 原因:无示例 |