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