Namespaces
Variants
Views
Actions

std::move_iterator::move_iterator

From cppreference.com
< cpp‎ | iterator‎ | move iterator
Revision as of 20:43, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
(1)
move_iterator();
(until C++17)
constexpr move_iterator();
(since C++17)
(2)
explicit move_iterator( Iterator x );
(until C++17)
constexpr explicit move_iterator( Iterator 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. 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.

[edit] Parameters

x - iterator to adapt
other - iterator adaptor to copy

[edit] Example

[edit] See also

assigns another iterator
(public member function) [edit]