operators (std::move_iterator)

operator<,<=,>,>=(std::move_iterator)

(1)
template< class Iterator1, class Iterator2 >
bool operator==( const move_iterator<Iterator1>& lhs,
                 const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator==( const move_iterator<Iterator1>& lhs,
                           const move_iterator<Iterator2>& rhs );
(since C++17)
(2)
template< class Iterator1, class Iterator2 >
bool operator!=( const move_iterator<Iterator1>& lhs,
                 const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator!=( const move_iterator<Iterator1>& lhs,
                           const move_iterator<Iterator2>& rhs );
(since C++17)
(3)
template< class Iterator1, class Iterator2 >
bool operator<( const move_iterator<Iterator1>& lhs,
                const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator<( const move_iterator<Iterator1>& lhs,
                          const move_iterator<Iterator2>& rhs );
(since C++17)
(4)
template< class Iterator1, class Iterator2 >
bool operator<=( const move_iterator<Iterator1>& lhs,
                 const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator<=( const move_iterator<Iterator1>& lhs,
                           const move_iterator<Iterator2>& rhs );
(since C++17)
(5)
template< class Iterator1, class Iterator2 >
bool operator>( const move_iterator<Iterator1>& lhs,
                const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator>( const move_iterator<Iterator1>& lhs,
                          const move_iterator<Iterator2>& rhs );
(since C++17)
(6)
template< class Iterator1, class Iterator2 >
bool operator>=( const move_iterator<Iterator1>& lhs,
                 const move_iterator<Iterator2>& rhs );
(until C++17)
template< class Iterator1, class Iterator2 >
constexpr bool operator>=( const move_iterator<Iterator1>& lhs,
                           const move_iterator<Iterator2>& rhs );
(since C++17)

Compares the underlying iterators.

Parameters

lhs, rhs - iterator adaptors to compare

Return Value

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()

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/iterator/move_iterator/operator_cmp

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部