std::filesystem::filesystem_error::operator=
From 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 オブジェクトを共有します。
[編集] 例
| このセクションは未完成です 理由: 例がありません |