std::ranges::chunk_view<V>::iterator<Const>::operator*

From cppreference.com
< cpp‎ | ranges‎ | chunk view‎ | iterator
 
 
Ranges library
Range access
Range conversions
(C++23)
Range primitives



Dangling iterator handling
Range concepts
Views

Range factories
Range adaptors
Range generators
Range adaptor objects
Range adaptor closure objects
Helper items
(until C++23)(C++23)


 
std::ranges::chunk_view
Member functions
Classes for input_ranges
Deduction guides
outer-iterator
outer-iterator::value_type
inner-iterator
 
constexpr value_type operator*() const;
(since C++23)

Returns the current element in the chunk_view.

Let current_, end_, and n_ be the underlying data members.

Equivalent to: return views::take(ranges::subrange(current_, end_), n_).

Before the invocation the expression current_ != end_ must be true, otherwise the behavior is undefined.

Parameters

(none)

Return value

The current element, which is an object of value_type.

Example

See also

accesses an element by index
(public member function)