最終更新日時:
が更新

履歴 編集

function
<stdexcept>

std::domain_error::operator=

domain_error& operator=(const domain_error&) noexcept;           // (1) C++98
constexpr domain_error& operator=(const domain_error&) noexcept; // (1) C++26

概要

domain_errorオブジェクトを代入する。

  • (1) : コピー代入。この代入演算子は暗黙的に定義される

戻り値

*this

備考

  • 代入後、what()が返す文字列は、代入元のオブジェクトのものと同じになる

例外

投げない

関連項目

参照