W3cubDocs

/C++

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

constexpr value_type operator*() const;
(since C++23)

Returns the current element in the chunk_by_view.

Equivalent to: return ranges::subrange(current_next_).

Before the call to this operator current_ must not be equal to next_, otherwise the behavior is undefined.

Parameters

(none).

Return value

The current element.

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/operator*