std::move_iterator<Iter>::move_iterator
From cppreference.com
< cpp | iterator | move iterator
(1) | ||
move_iterator(); |
(until C++17) | |
constexpr move_iterator(); |
(since C++17) | |
(2) | ||
explicit move_iterator( iterator_type x ); |
(until C++17) | |
constexpr explicit move_iterator( iterator_type x ); |
(since C++17) | |
(3) | ||
template< class U > move_iterator( const move_iterator<U>& other ); |
(until C++17) | |
template< class U > constexpr move_iterator( const move_iterator<U>& other ); |
(since C++17) | |
Constructs a new iterator adaptor.
1) Default constructor. The underlying iterator is value-initialized. Operations on the resulting iterator have defined behavior if and only if the corresponding operations on a value-initialized
Iterator
also have defined behavior.2) The underlying iterator is initialized with
x
(until C++20)std::move(x)
(since C++20).3) The underlying iterator is initialized with
other.base()
. The behavior is undefined (until C++20)The program is ill-formed (since C++20) if other.base()
is not convertible to Iter
.Parameters
x | - | iterator to adapt |
other | - | iterator adaptor to copy |
Example
This section is incomplete Reason: no example |
See also
assigns another iterator (public member function) |