std::ranges::split_view<V,Pattern>:: sentinel
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
|
class
/*sentinel*/
;
|
(C++20 起)
( 仅用于说明* ) |
|
当底层
view
类型
V
不满足
common_range
概念时,
split_view::end
的返回类型。
目录 |
数据成员
| 成员 | 描述 |
ranges::
sentinel_t
<
V
>
end_
(私有)
|
底层
view
的哨兵
( 仅用于说明的成员对象* ) |
成员函数
|
(constructor)
(C++20)
|
构造哨兵对象
(公开成员函数) |
std::ranges::split_view:: sentinel :: sentinel
|
/*sentinel*/
(
)
=
default
;
|
(1) | (since C++20) |
|
constexpr
explicit
/*sentinel*/
(
ranges::
split_view
&
parent
)
;
|
(2) | (since C++20) |
非成员函数
|
operator==
(C++20)
|
比较底层迭代器与底层哨兵
(函数) |
operator== (std::ranges::split_view:: iterator , std::ranges::split_view:: sentinel )
|
friend
constexpr
bool
operator
==
(
const
/*iterator*/
&
x,
const /*sentinel*/ & y ) ; |
(since C++20) | |
等价于 return x. cur_ == y. end_ and ! x. trailing_empty_ ; 。
!=
运算符由
operator==
合成
。
此函数对常规的
非限定查找
或
限定查找
不可见,仅当
std::ranges::split_view::
sentinel
是实参的关联类时,才能通过
实参依赖查找
找到。