- iterator[meta header]
- std[meta namespace]
- move_sentinel[meta class]
- function[meta id-type]
- cpp20[meta cpp]
template<class S2>
requires assignable_from<S&, const S2&>
constexpr move_sentinel& operator=(const move_sentinel<S2>& s);- assignable_from[link /reference/concepts/assignable_from.md]
move_sentinelオブジェクトをコピー代入する。
Sの番兵オブジェクトをlastというメンバ変数に保持しているとすると、以下と等価
last = s.last;
return *this;- C++20
- Clang: ??
- GCC: 10.1
- Visual C++: 2019 Update 7