On this page
std::ranges::slide_view<V>::iterator<Const>::iterator
|
(1) | (since C++23) |
|
(2) | (since C++23) |
|
(3) | (exposition only*) |
|
(4) | (exposition only*) |
Construct an iterator.
1) Default constructor. Value-initializes the underlying data members:current_withranges::iterator_t<Base>(),last_ele_withranges::iterator_t<Base>()(note that this member may not be present),n_with0.
/*iterator*/<false> to /*iterator*/<true>. Initializes the underlying data members:
Note that /*iterator*/<true> can only be formed when Base models /*slide-caches-nothing*/, in which case last_ele_ is not present. 3) A private constructor which is used by ranges::slide_view::begin and ranges::slide_view::end. This constructor is not accessible to users. Initializes the underlying data members:
Note that this overload can only be present if last_ele_ is not present. 4) A private constructor which is used by ranges::slide_view::begin and ranges::slide_view::end. This constructor is not accessible to users. Initializes the underlying data members:
current_withcurrent,last_ele_withlast_ele(note that this data member is present due to/*slide-caches-first*/<Base>requirement),n_withn.
Parameters
| i | - | an /*iterator*/<false> |
| current | - | an iterator to current element of slide_view |
| last_ele | - | an iterator to last element of slide_view |
| n | - | the slide window width of slide_view |
Example
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/slide_view/iterator/iterator