std::ranges::chunk_by_view<V,Pred>:: end
From cppreference.net
<
cpp
|
ranges
|
chunk by view
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::chunk_by_view
| Member functions | ||||
|
chunk_by_view::end
|
||||
| Deduction guides | ||||
| Iterator | ||||
|
constexpr
auto
end
(
)
;
|
(自 C++23 起) | |
返回表示
chunk_by_view
末尾的
迭代器
或
哨位
。
相当于:
if constexpr (ranges::common_range<V>) return /*迭代器*/(*this, ranges::end(base_), ranges::end(base_)); else return std::default_sentinel;
目录 |
参数
(无)
返回值
指向最后一个元素之后位置的 迭代器 ,或与结束迭代器比较相等的哨位。
注释
end()
当且仅当底层视图为
common_range
时返回迭代器:
chunk_by_view
<
V,Pred
>
在
V
满足
common_range
时自动建模该概念。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
返回指向起始位置的迭代器
(公开成员函数) |
|
|
(C++20)
|
返回指示范围结束的哨兵
(定制点对象) |