std::ranges::chunk_view<V>::iterator<Const>::iterator
From cppreference.com
< cpp | ranges | chunk view | iterator
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|||||||||||||||||
std::ranges::chunk_view
| Member functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/*iterator*/() = default; |
(1) | (since C++23) |
|
constexpr
/*iterator*/
(
/*iterator*/
<
!Const> i )
requires |
(2) | (since C++23) |
|
private
:
constexpr
/*iterator*/
( Parent* parent, |
(3) | (exposition only*) |
Construct an iterator.
1) Default constructor. Value-initializes the underlying data members:
-
current_with ranges::iterator_t <Base> ( ) -
end_with ranges::sentinel_t <Base> ( ) n_with 0,missing_with 0.
2) Conversion from /*iterator*/<false> to /*iterator*/<true>. Initializes the underlying data members:
-
current_with std::move(i.current_) -
end_with std::move(i.end_) n_with i.n_,missing_with i.missing_.
3) A private constructor which is used by ranges::chunk_view::begin and ranges::chunk_view::end. This constructor is not accessible to users. Initializes the underlying data members:
current_with current,-
end_with ranges::end (parent- >base_) n_with parent->n_,missing_with missing.
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
| This section is incomplete Reason: no example |