operator==(ranges::elements_view::sentinel)
来自 zh.cppreference.net
template< bool OtherConst >
requires std::sentinel_for<ranges::sentinel_t<Base>,
ranges::iterator_t</*maybe-const*/<OtherConst, V>>>
friend constexpr bool operator==( const /*iterator*/<OtherConst>& x,
const /*sentinel*/& y );
|
(自 C++20 起) | |
比较 x 的底层迭代器与 y 的底层哨兵。
此函数对于普通的 非限定 或 限定查找 不可见,并且只能通过 参数依赖查找 找到,当 elements_view::sentinel<Const> 是参数的关联类时。
!= 运算符是由 从 合成的operator==。
参数
| x | - | 待比较的 iterator |
| y | - | 待比较的 sentinel |
返回值
x. base ( ) == y. base ( ) 。
示例
|
本节内容不完整
原因:缺少示例 |