Namespaces
Variants
Views
Actions

std::move_iterator<Iter>::operator=

From cppreference.com
 
 
Iterator library
Iterator concepts
(C++20)
(C++20)
(C++20)
(C++20)
Iterator primitives
Iterator adaptors
Stream iterators
Iterator customization points
Iterator operations
(C++11)
(C++11)
Range access
(C++11)(C++14)
(C++11)(C++14)
(C++17)(C++20)
(C++14)(C++14)
(C++14)(C++14)
(C++17)
(C++17)
 
 
template< class U >
move_iterator& operator=( const move_iterator<U>& other );
(until C++17)
template< class U >
constexpr move_iterator& operator=( const move_iterator<U>& other );
(since C++17)

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

Contents

[edit] Parameters

other - iterator adaptor to assign

[edit] Return value

*this

[edit] Example

[edit] See also

constructs a new iterator adaptor
(public member function) [edit]