Namespaces
Variants

std::filesystem::filesystem_error:: operator=

From cppreference.net
filesystem_error & operator = ( const filesystem_error & other ) noexcept ;
(C++17以降)

other の内容を代入します。 * this other の両方が動的型 std::filesystem::filesystem_error を持つ場合、代入後は std:: strcmp ( what ( ) , other. what ( ) ) == 0 となります。

目次

パラメータ

other - 代入する別の filesystem_error オブジェクト

戻り値

* this

注記

一般的な実装では、 path オブジェクトは path1() path2() によって参照され、参照カウント方式のストレージに格納されます。その結果、代入後は * this other が通常 path オブジェクトを共有します。