libstdc++
|
#include <stl_iterator.h>
Inherits std::__detail::__move_iter_cat< _Iterator >.
Public Types | |
using | difference_type = iter_difference_t< _Iterator > |
using | iterator_concept = decltype(_S_iter_concept()) |
using | iterator_type = _Iterator |
using | pointer = _Iterator |
using | reference = iter_rvalue_reference_t< _Iterator > |
using | value_type = iter_value_t< _Iterator > |
Public Member Functions | |
template<typename _Iter > requires __convertible<_Iter> | |
constexpr | move_iterator (const move_iterator< _Iter > &__i) |
constexpr | move_iterator (iterator_type __i) |
constexpr iterator_type | base () && |
constexpr const iterator_type & | base () const &noexcept |
constexpr reference | operator* () const |
constexpr move_iterator | operator+ (difference_type __n) const |
constexpr move_iterator & | operator++ () |
constexpr move_iterator | operator++ (int) |
constexpr void | operator++ (int) |
constexpr move_iterator & | operator+= (difference_type __n) |
constexpr move_iterator | operator- (difference_type __n) const |
constexpr move_iterator & | operator-- () |
constexpr move_iterator | operator-- (int) |
constexpr move_iterator & | operator-= (difference_type __n) |
constexpr pointer | operator-> () const |
template<typename _Iter > requires __convertible<_Iter> && assignable_from<_Iterator&, const _Iter&> | |
constexpr move_iterator & | operator= (const move_iterator< _Iter > &__i) |
constexpr reference | operator[] (difference_type __n) const |
Friends | |
constexpr iter_rvalue_reference_t< _Iterator > | iter_move (const move_iterator &__i) noexcept(noexcept(ranges::iter_move(__i._M_current))) |
template<indirectly_swappable< _Iterator > _Iter2> | |
constexpr void | iter_swap (const move_iterator &__x, const move_iterator< _Iter2 > &__y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) |
template<sized_sentinel_for< _Iterator > _Sent> | |
constexpr iter_difference_t< _Iterator > | operator- (const move_iterator &__x, const move_sentinel< _Sent > &__y) |
template<sized_sentinel_for< _Iterator > _Sent> | |
constexpr iter_difference_t< _Iterator > | operator- (const move_sentinel< _Sent > &__x, const move_iterator &__y) |
template<sentinel_for< _Iterator > _Sent> | |
constexpr bool | operator== (const move_iterator &__x, const move_sentinel< _Sent > &__y) |
Class template move_iterator is an iterator adapter with the same behavior as the underlying iterator except that its dereference operator implicitly converts the value returned by the underlying iterator's dereference operator to an rvalue reference. Some generic algorithms can be called with move iterators to replace copying with moving.
Definition at line 1449 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::difference_type = iter_difference_t<_Iterator> |
Definition at line 1497 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::iterator_concept = decltype(_S_iter_concept()) |
Definition at line 1493 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::iterator_type = _Iterator |
Definition at line 1488 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::pointer = _Iterator |
Definition at line 1498 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::reference = iter_rvalue_reference_t<_Iterator> |
Definition at line 1499 of file bits/stl_iterator.h.
using std::move_iterator< _Iterator >::value_type = iter_value_t<_Iterator> |
Definition at line 1496 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1515 of file bits/stl_iterator.h.
|
inlineexplicitconstexpr |
Definition at line 1519 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1527 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1555 of file bits/stl_iterator.h.
|
inlineconstexprnoexcept |
Definition at line 1550 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1561 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1611 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1574 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1581 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1590 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1615 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1623 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1595 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1602 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1627 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1570 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1536 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 1635 of file bits/stl_iterator.h.
Definition at line 1462 of file bits/stl_iterator.h.
|
friend |
Definition at line 1663 of file bits/stl_iterator.h.
|
friend |
Definition at line 1669 of file bits/stl_iterator.h.
|
friend |
Definition at line 1658 of file bits/stl_iterator.h.
|
friend |
Definition at line 1652 of file bits/stl_iterator.h.
|
friend |
Definition at line 1646 of file bits/stl_iterator.h.