operator<,<=,>,>=(std::reverse_iterator)
(1) | ||
template< class Iterator1, class Iterator2 > bool operator==( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator==( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
(2) | ||
template< class Iterator1, class Iterator2 > bool operator!=( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator!=( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
(3) | ||
template< class Iterator1, class Iterator2 > bool operator<( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator<( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
(4) | ||
template< class Iterator1, class Iterator2 > bool operator<=( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator<=( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
(5) | ||
template< class Iterator1, class Iterator2 > bool operator>( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator>( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
(6) | ||
template< class Iterator1, class Iterator2 > bool operator>=( const reverse_iterator<Iterator1>& lhs, |
(C++17 前) | |
template< class Iterator1, class Iterator2 > constexpr bool operator>=( const reverse_iterator<Iterator1>& lhs, |
(C++17 起) | |
比较底层迭代器。考虑到迭代器顺序是逆向的,而应用逆向比较。
参数
lhs, rhs | - | 要比较的迭代器适配器 |
返回值
示例
本节未完成 原因:暂无示例 |