std::ranges::chunk_view<V>::inner-iterator::operator++
來自 cppreference.com
< cpp | ranges | chunk view | inner iterator
constexpr /*inner-iterator*/& operator++(); |
(1) | (C++23 起) |
constexpr void operator++( int ); |
(2) | (C++23 起) |
自增迭代器。
令 parent_
為指向其所包裹的 chunk_view
的底層指標。
1) 等價於在呼叫此運算子之前,表示式 *this == std::default_sentinel 必須為 false。
++*parent_->current_; if (*parent_->current_ == ranges::end(parent_->base_)) parent_->remainder_ = 0; else --parent_->remainder_; return *this;
2) 等價於 ++*this。
目錄 |
[編輯] 引數
(無)
[編輯] 返回值
1) *this
2) (無)
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
(C++23) |
計算剩餘塊的數量 (函式) |