operator-(ranges::adjacent_transform_view::sentinel)
来自cppreference.com
范围库
| ||||||||||||||||||||||
| 范围原语 | |||||||
| |||||||
| 范围概念 | |||||||||||||||||||
| |||||||||||||||||||
| 范围工厂 | |||||||||
| |||||||||
| 范围适配器 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 辅助项 | |||||||||||||||||
|
| ||||||||||||||||
std::ranges::adjacent_transform_view
template< bool OtherConst >
requires std::sized_sentinel_for</*inner-sentinel*/<Const>,
/*inner-iterator*/<OtherConst>>
friend constexpr
ranges::range_difference_t</*maybe-const*/<OtherConst, InnerView>>
operator-( const /*iterator*/<OtherConst>& x, const /*sentinel*/& y );
|
(1) | (C++23 起) |
template< bool OtherConst >
requires std::sized_sentinel_for</*inner-sentinel*/<Const>,
/*inner-iterator*/<OtherConst>>
friend constexpr
ranges::range_difference_t</*maybe-const*/<OtherConst, InnerView>>
operator-( const /*sentinel*/& y, const /*iterator*/<OtherConst>& x );
|
(2) | (C++23 起) |
这些函数模板对常规的无限定或有限定查找不可见,而只能在 adjacent_transform_view::sentinel 为实参的关联类时由实参依赖查找找到。
参数
| x | - | 迭代器 |
| y | - | 哨位 |
返回值
迭代器 x 与哨位 y 之间的距离。
示例
| 本节未完成 原因:暂无示例 |