std::move_iterator
From cppreference.com
| Defined in header <iterator>
|
||
| template< class Iter > class move_iterator; |
(since C++11) | |
std::move_iterator is an iterator adaptor which behaves exactly like the underlying iterator (which must be at least a LegacyInputIterator or model input_iterator(since C++20), or stronger iterator concept(since C++23)), except that dereferencing converts the value returned by the underlying iterator into an rvalue. If this iterator is used as an input iterator, the effect is that the values are moved from, rather than copied from.
Contents |
[edit] Nested types
|
(until C++20) | ||||||||||||||||||||
|
(since C++20) |
[edit] Data members
| Member | Description |
Iter current
|
the underlying iterator (exposition-only member object*) |
[edit] Member functions
constructs a new move_iterator (public member function) | |
assigns another move_iterator (public member function) | |
| accesses the underlying iterator (public member function) | |
| accesses the pointed-to element (public member function) | |
| accesses an element by index (public member function) | |
advances or decrements the move_iterator (public member function) |