std::move_iterator::move_iterator

move_iterator();
(1)
explicit move_iterator( Iterator x );
(2)
template< class U > 
move_iterator( const move_iterator<U>& other );
(3)

Constructs a new iterator adaptor.

1) Default constructor. current 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) current is initialized with x.
3) Copy constructor. The underlying iterator is initialized with that of other.

Parameters

x - iterator to adapt
other - iterator adaptor to copy

Example

See also

operator=
assigns another iterator
(public member function)
doc_CPP
2016-10-11 10:04:57
Comments
Leave a Comment

Please login to continue.