首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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

比较基础迭代器。

参数

lhs, rhs

-

iterator adaptors to compare

返回值

1%29lhs.base() == rhs.base()

2%29lhs.base() != rhs.base()

3%29lhs.base() < rhs.base()

4%29lhs.base() <= rhs.base()

5%29lhs.base() > rhs.base()

6%29lhs.base() >= rhs.base()

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券