名前空間
変種
操作

std::error_condition::operator=

提供: cppreference.com
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
 
 
error_condition& operator=( const error_condition& other ) noexcept;
(1) (C++11以上)
(暗黙に宣言)
template< class ErrorConditionEnum >
error_condition& operator=( ErrorConditionEnum e ) noexcept;
(2) (C++11以上)

内容をエラーコンディションに代入します。

1) コピー代入演算子。 other の内容を代入します。
2) 列挙子 e に対するエラーコンディションを代入します。 実質的に make_error_condition() を呼びます。 is_error_condition_enum<ErrorConditionEnum>::valuetrue でなければ、オーバーロード解決に参加しません。

[編集] 引数

other - 初期化するための別のエラーコンディション
e - エラーコンディションの列挙子

[編集] 戻り値

*this