std::move_iterator::move_iterator - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::move_iterator::move_iterator

From cppreference.com
< cpp‎ | iterator‎ | move iterator

[edit template]

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. This makes sense only if operations on an value-initialized `Iterator` make also sense.
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

| This section is incomplete Reason: no example

### [edit] See also

operator= | assigns another iterator (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_iterator/move_iterator&oldid=50880"
Category:

- Todo no example