名前空間
変種
操作

std::exception::operator=

提供: cppreference.com
< cpp‎ | error‎ | exception
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (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)
 
 
 
exception& operator=( const exception& other ) throw();
(C++11未満)
exception& operator=( const exception& other ) noexcept;
(C++11以上)

コピー代入演算子。 other の内容を代入します。

代入の後に what() を呼んだ効果は処理系定義です。

(C++11未満)

*thisother が同じ動的型 std::exception であれば、 std::strcmp(what(), other.what()) == 0 です。

(C++11以上)

[編集] 引数

other - 内容を代入する別の例外