Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 998 Bytes

File metadata and controls

37 lines (24 loc) · 998 Bytes

operator=

  • stdexcept[meta header]
  • std[meta namespace]
  • invalid_argument[meta class]
  • function[meta id-type]
invalid_argument& operator=(const invalid_argument&) noexcept;           // (1) C++98
constexpr invalid_argument& operator=(const invalid_argument&) noexcept; // (1) C++26

概要

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

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

戻り値

*this

備考

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

例外

投げない

関連項目

参照