On this page
std::ranges::chunk_view<V>::iterator<Const>::iterator
|
(1) | (since C++23) |
|
(2) | (since C++23) |
|
(3) | (exposition only*) |
Construct an iterator.
1) Default constructor. Value-initializes the underlying data members:current_withranges::iterator_t<Base>(),end_withranges::sentinel_t<Base>(),n_with0,missing_with0.
/*iterator*/<false> to /*iterator*/<true>. Initializes the underlying data members:
current_withstd::move(i.current_),end_withstd::move(i.end_),n_withi.n_,missing_withi.missing_.
ranges::chunk_view::begin and ranges::chunk_view::end. This constructor is not accessible to users. Initializes the underlying data members:
current_withcurrent,end_withranges::end(parent->base_),n_withparent->n_,missing_withmissing.
Parameters
| i | - | an /*iterator*/<false> |
| parent | - | a pointer to owning chunk_view |
| current | - | an iterator to the begin of current chunk |
| missing | - | a difference between expected (n_) and actual size of current chunk |
Example
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/chunk_view/iterator/iterator