operator==, !=(std::move_iterator<Iter>, std::move_sentinel)
来自cppreference.com
< cpp | iterator | move iterator
template<std::sentinel_for<Iter> S> friend constexpr bool |
(1) | (C++20 起) |
template<std::sentinel_for<Iter> S> friend constexpr bool |
(2) | (C++20 起) |
template<std::sentinel_for<Iter> S> friend constexpr bool |
(3) | (C++20 起) |
template<std::sentinel_for<Iter> S> friend constexpr bool |
(4) | (C++20 起) |
比较 move_iterator
与 move_sentinel
。
这些函数对通常无限定或有限定查找不可见,而只能由参数依赖查找在 std::move_iterator<Iter> 为参数的关联类时找到。
参数
i | - | std::move_iterator<Iter>
|
s | - | std::move_sentinel<S> ,其中 S 实现 std::sentinel_for<Iter>
|
返回值
1-2) i.base() == s.base()
3-4) !(i == s)
参阅
比较底层迭代器 (函数模板) |