operator==(ranges::adjacent_transform_view::sentinel)
来自cppreference.com
范围库
| ||||||||||||||||||||||
| 范围原语 | |||||||
| |||||||
| 范围概念 | |||||||||||||||||||
| |||||||||||||||||||
| 范围工厂 | |||||||||
| |||||||||
| 范围适配器 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 辅助项 | |||||||||||||||||
|
| ||||||||||||||||
std::ranges::adjacent_transform_view
template< bool OtherConst >
requires std::sentinel_for</*inner-sentinel*/<Const>,
/*inner-iterator*/<OtherConst>>
friend constexpr bool operator==( const /*iterator*/<OtherConst>& x,
const /*sentinel*/& y );
|
(C++23 起) | |
比较 x 的底层迭代器和 y 的底层哨位。
等价于:
return x.
inner_
== y.
inner_;
。
此函数模板对常规的无限定或有限定查找不可见,而只能在 adjacent_transform_view::sentinel 为实参的关联类时由实参依赖查找找到。
!= 运算符从 operator== 运算符合成。
参数
| x | - | 要比较的迭代器 |
| y | - | 要比较的sentinel |
返回值
比较的结果。
示例
| 本节未完成 原因:暂无示例 |