operator==,!=,<,<=,>,>=,<=>(std::move_iterator)
提供: cppreference.com
| (1) | ||
template< class Iterator1, class Iterator2 > bool operator==( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator==( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) | |
| (2) | ||
template< class Iterator1, class Iterator2 > bool operator!=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator!=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) (C++20未満) |
|
| (3) | ||
template< class Iterator1, class Iterator2 > bool operator<( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator<( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) | |
| (4) | ||
template< class Iterator1, class Iterator2 > bool operator<=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator<=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) | |
| (5) | ||
template< class Iterator1, class Iterator2 > bool operator>( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator>( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) | |
| (6) | ||
template< class Iterator1, class Iterator2 > bool operator>=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17未満) | |
template< class Iterator1, class Iterator2 > constexpr bool operator>=( const std::move_iterator<Iterator1>& lhs, const std::move_iterator<Iterator2>& rhs ); |
(C++17以上) | |
template<class Iterator1, std::three_way_comparable_with<Iterator1> Iterator2> constexpr std::compare_three_way_result_t<Iterator1, Iterator2> operator<=>( const std::move_iterator<Iterator1>& x, const std::move_iterator<Iterator2>& y ); |
(7) | (C++20以上) |
ベースとなるイテレータを比較します。
|
(1-6) は、ベースとなる比較式 (下を参照) が well-formed かつ |
(C++20以上) |
引数
| lhs, rhs | - | 比較するイテレータアダプタ |
戻り値
1)
lhs.base() == rhs.base()2)
lhs.base() != rhs.base()3)
lhs.base() < rhs.base()4)
lhs.base() <= rhs.base()5)
lhs.base() > rhs.base()6)
lhs.base() >= rhs.base()7)
lhs.base() <=> rhs.base()例
| This section is incomplete Reason: no example |