名稱空間
變體
操作

std::filesystem::filesystem_error::operator=

來自 cppreference.com
 
 
 
 
filesystem_error& operator=( const filesystem_error& other ) noexcept;
(C++17 起)

other 的內容賦值。如果 *thisother 都具有動態型別 std::filesystem::filesystem_error,則賦值後 std::strcmp(what(), other.what()) == 0

目錄

[編輯] 引數

其他 - 另一個用於賦值的 filesystem_error 物件

[編輯] 返回值

*this

[編輯] 注意

典型的實現會將 path1()path2() 引用的 path 物件儲存在引用計數儲存中。因此,賦值後 *thisother 通常會共享它們的 path 物件。

[編輯] 示例