stdmove_iteratormove_iterator(3)
std::move_iterator<Iter>::move_iterator - std::move_iterator<Iter>::move_iterator
Synopsis
move_iterator();
(until C++ 17)
constexpr move_iterator();
(since C++ 17)
explicit move_iterator(iterator_type x);
(until C++ 17)
constexpr explicit move_iterator(iterator_type x);
(1)(since C++ 17)
template <class U>
(2)(until C++ 17)
move_iterator(const move_iterator<U> &other);
(3)
template <class U>
(since C++ 17)
constexpr move_iterator(const move_iterator<U> &other);Constructs a new iterator adaptor.
- 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.
- The underlying iterator is initialized with x.
- The underlying iterator is initialized with that of other.
Parameters
x - iterator to adapt other - iterator adaptor to copy
Example
This section is incomplete Reason: no example
See also
assigns another iterator
operator= (public member function)