std::filesystem::filesystem_error::operator=
來自 cppreference.com
< 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
物件。
[編輯] 示例
本節不完整 原因:無示例 |