length_error& operator=(const length_error&) noexcept; // (1) C++98
constexpr length_error& operator=(const length_error&) noexcept; // (1) C++26
概要
length_errorオブジェクトを代入する。
- (1) : コピー代入。この代入演算子は暗黙的に定義される
戻り値
*this
備考
- 代入後、
what()が返す文字列は、代入元のオブジェクトのものと同じになる
例外
投げない
関連項目
参照
- P3378R2
constexprexception types- C++26で
constexpr対応した
- C++26で