template<class S2>
requires assignable_from<S&, const S2&>
constexpr move_sentinel& operator=(const move_sentinel<S2>& s);
概要
move_sentinel
オブジェクトをコピー代入する。
効果
S
の番兵オブジェクトをlast
というメンバ変数に保持しているとすると、以下と等価
last = s.last;
return *this;
バージョン
言語
- C++20
処理系
- Clang: ??
- GCC: 10.1 ✅
- Visual C++: 2019 Update 7 ✅