std::ranges::iota_view<W, Bound>::sentinel
來自 cppreference.com
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 起) |
[編輯] 示例
本節不完整 原因:無示例 |