std::make_move_iterator (3) - Linux Manuals
std::make_move_iterator: std::make_move_iterator
NAME
std::make_move_iterator - std::make_move_iterator
Synopsis
Defined in header <iterator>
template< class Iter > (since C++11)
std::move_iterator<Iter> make_move_iterator( const Iter& i ); (until C++14)
template< class Iter > (since C++14)
std::move_iterator<Iter> make_move_iterator( Iter i ); (until C++17)
template< class Iter > (since C++17)
constexpr std::move_iterator<Iter> make_move_iterator( Iter i );
make_move_iterator is a convenience function template that constructs a std::move_iterator for the given iterator i with the type deduced from the type of the argument.
Parameters
i - input iterator to be converted to move iterator
Return value
A std::move_iterator which can be used to move from the elements accessed through i
Possible implementation
Example
// Run this code
Possible output:
See also
move_iterator iterator adaptor which dereferences to an rvalue reference
(C++11)
move obtains an rvalue reference
(C++11)