名前空間
変種
操作

std::filesystem::filesystem_error::operator=

From 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 オブジェクトは、典型的な実装では参照カウントされたストレージに格納されます。その結果、代入後、通常は *thisotherpath オブジェクトを共有します。

[編集]

English 日本語 中文(简体) 中文(繁體)