命名空间
变体
操作

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

来自 cppreference.cn
 
 
范围库 (Ranges library)
范围适配器 (Range adaptors)
 
 
constexpr auto end();
(1) (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) (C++23 起)

返回一个迭代器或一个哨位,它与 join_with_view 的尾后迭代器比较为相等。

1) 返回一个可变迭代器/哨位或 const 迭代器/哨位。
  • 若满足下列所有条件,则返回一个迭代器
  • 否则,返回一个哨位。
2) 返回一个 const 迭代器/哨位。
  • 若满足下列所有条件,则返回一个迭代器
  • 否则,返回一个哨位。
关于 /*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}

[编辑] 示例

[编辑] 参阅

返回指向起始的迭代器
(公开成员函数) [编辑]
返回指示范围末尾的哨兵
(定制点对象)[编辑]