std::ranges::iota_view<W, Bound>::sentinel
来自cppreference.com
struct /*sentinel*/; | (仅用于阐述*) | |
ranges::iota_view<W, Bound>::iterator 是 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 起) |
示例
| 本节未完成 原因:暂无示例 |