std::move_sentinel<S>::operator=

template< class S2 >

    requires std::assignable_from<S&, const S2&>

        constexpr move_sentinel& operator=( const std::move_sentinel<S2>& other );
(C++20 起)

other 的底层哨位的值(即 other.base())赋给底层哨位。

参数

other - 要赋值的哨位适配器

返回值

*this

示例

参阅

(C++11)
赋值另一迭代器适配器
(std::move_iterator<Iter> 的公开成员函数)