std::ranges::iota_view<W, Bound>::sentinel
来自 cppreference.cn
struct /*sentinel*/; |
(仅作说明*) | |
ranges::iota_view<W, Bound>::sentinel
是 ranges::iota_view<W, Bound> 的 end()
返回的可达哨兵类型。
目录 |
[编辑] 数据成员
成员 | 定义 |
Bound bound_ |
哨兵值 (仅用于阐释的成员对象*) |
[编辑] 成员函数
std::ranges::iota_view::sentinel::sentinel
/*sentinel*/() = default; |
(1) | (C++20 起) |
constexpr explicit /*sentinel*/( Bound bound ); |
(2) | (C++20 起) |
1) 值初始化
bound_
。[编辑] 非成员函数
operator==(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
friend constexpr bool operator==( const /*iterator*/& x, const /*sentinel*/& y ); |
(C++20 起) | |
!=
运算符由 operator==
合成。
operator-(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
friend constexpr std::iter_difference_t<W> operator-(const /*iterator*/& x, const /*sentinel*/& y) |
(1) | (C++20 起) |
friend constexpr std::iter_difference_t<W> operator-(const /*sentinel*/& x, const /*iterator*/& y) |
(2) | (C++20 起) |
[编辑] 示例
本节不完整 原因:无示例 |