- 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 [mark verified]
- Visual C++: 2019 Update 7 [mark verified]