Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::move_sentinel<S>::operator=

The underlying sentinel is assigned the value of the underlying sentinel of other, i.e. other.base().

Iterator
  • C++11
  • C++20
1 min readView on cppreference
NotebookLM
template< class S2 >
    requires std::assignable_from<S&, const S2&>
        constexpr move_sentinel& operator=( const std::move_sentinel<S2>& other );
(since C++20)

The underlying sentinel is assigned the value of the underlying sentinel of other, i.e. other.base().

Parameters

other - sentinel adaptor to assign

Return value

*this

Example

This section is incomplete
Reason: no example

See also

(C++11)
assigns another iterator adaptor
(public member function of std::move_iterator<Iter>)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.