std::ranges::join_with_view<V,Pattern>::end
来自 cppreference.cn
< cpp | ranges | join with view
| constexpr auto end(); |
(1) | (C++23 起) |
| constexpr auto end() const requires ranges::forward_range<const V> && |
(2) | (C++23 起) |
返回一个迭代器或一个哨位,它与 join_with_view 的尾后迭代器比较为相等。
1) 返回一个可变迭代器/哨位或 const 迭代器/哨位。
- 若满足下列所有条件,则返回一个迭代器
-
V建模forward_range和common_range。 - std::is_reference_v<
InnerRng> 为 true。 -
InnerRng建模forward_range和common_range。
-
- 否则,返回一个哨位。
2) 返回一个 const 迭代器/哨位。
- 若满足下列所有条件,则返回一个迭代器
- const V 建模
common_range。 - ranges::range_reference_t<const V> 建模
forward_range和common_range。
- const V 建模
- 否则,返回一个哨位。
关于 /*concatable*/ 的定义,请参阅 std::ranges::concat_view。
[编辑] 返回值
| 重载 | 返回值 | |
|---|---|---|
| 迭代器 (Iterator) | 哨兵 (Sentinel) | |
| (1) | iterator <simple-view <V> && simple-view <Pattern>> {*this, ranges::end(base_)}
|
sentinel <simple-view <V> && simple-view <Pattern>> {*this}
|
| (2) | iterator <true>{*this, ranges::end(base_)}
|
sentinel <true>{*this}
|
[编辑] 示例
| 本节不完整 原因:无示例 |
[编辑] 参阅
| 返回指向起始的迭代器 (公开成员函数) | |
| (C++20) |
返回指示范围末尾的哨兵 (定制点对象) |