W3cubDocs

/C++

std::ranges::chunk_by_view<V,Pred>::iterator::iterator

/*iterator*/() = default;
(1) (since C++23)
private:
constexpr /*iterator*/( ranges::chunk_by_view& parent,      // exposition only
                        ranges::iterator_t<V> current,
                        ranges::iterator_t<V> next );
(2) (since C++23)

Construct an iterator.

1) Default constructor. Value-initializes the underlying data-members as follows: 2) A private constructor which is used by chunk_by_view::begin and chunk_by_view::end. This constructor is not accessible to users. Initializes:

Parameters

parent - a parent object
current, next - iterators

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/chunk_by_view/iterator/iterator