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 起) |
[编辑] 示例
本节尚不完整 原因:没有示例 |