命名空间
变体
操作

std::ranges::join_with_view<V,Pattern>::end

来自 cppreference.cn
 
 
范围库
范围适配器
 
 
constexpr auto end();
(1) (since C++23)
constexpr auto end() const

    requires ranges::forward_range<const V> &&
             ranges::forward_range<const Pattern> &&
             std::is_reference_v<ranges::range_reference_t<const V>>> &&
             ranges::input_range<ranges::range_reference_t<const V>> &&
             /*concatable*/<ranges::range_reference_t<const V>,

                            const Pattern>;
(2) (since C++23)

返回一个迭代器或一个哨位,它与 join_with_view 的 past-the-end 迭代器比较相等。

1) 返回一个可变迭代器/哨位或常量迭代器/哨位。
  • 如果满足以下所有条件,则返回一个迭代器
  • 否则,返回一个哨位。
2) 返回一个常量迭代器/哨位。
  • 如果满足以下所有条件,则返回一个迭代器
  • 否则,返回一个哨位。
关于 /*concatable*/ 的定义,请参阅 std::ranges::concat_view

[编辑] 返回值

 重载  返回值
迭代器 哨位
(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}

[编辑] 示例

[编辑] 参见

返回指向开头的迭代器
(公共成员函数) [编辑]
返回一个指示范围结尾的哨位
(定制点对象)[编辑]