W3cubDocs

/C++

std::ranges::chunk_view<V>::outer-iterator::outer-iterator

/*outer-iterator*/( /*outer-iterator*/&& other ) = default;
(1) (since C++23)
private:
// exposition only
constexpr explicit /*outer-iterator*/( chunk_view& parent );
(2) (since C++23)

Construct an iterator.

1) Move constructor. Move-initializes the underlying pointer parent_ with other.parent_.
2) A private constructor which is used by chunk_view::begin. This constructor is not accessible to users. Initializes parent_ with std::addressof(parent).

Parameters

other - an iterator
parent - the enclosing ranges::chunk_view object

Example

See also

(C++23)
move assigns another iterator
(public member function)

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