# std::move_sentinel<S>::operator=

> C++ Atlas: `cppatlas.com/w/cpp/iterator/move_sentinel/operator=` | Source: https://en.cppreference.com/w/cpp/iterator/move_sentinel/operator= | Domain: Iterator | Standards: C++11, C++20

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

## Official Specification Summary (cppreference)

```cpp
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

> Note: This section is incomplete Reason: no example

### See also

- [`operator=`](https://en.cppreference.com/w/cpp/iterator/move_iterator/operator=) (C++11): assigns another iterator adaptor (public member function of `std::move_iterator<Iter>`)

---
Attribution: content from https://en.cppreference.com/w/cpp/iterator/move_sentinel/operator= (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.