std::ranges::chunk_view<V>::begin - cppreference.com

From cppreference.com

V models only

input_range

constexpr/*outer_iterator*/begin(); (1) (since C++23)V models

forward_range

constexprautobegin()requires(!/*simple_view*/<V>); (2) (since C++23)constexprautobegin()constrequiresranges::forward_range<constV>; (3) (since C++23)Returns an

iterator

to the first element of the chunk_view.

1) Available only if V models

input_range

. Equivalent to

current_

=ranges::begin(

base_

);

remainder_

=

n_

;
return

outer_iterator

(*this);

Return value

An iterator to the first element of the

chunk_view

, as described above.

Example

See also

returns an iterator or a sentinel to the end
(public member function)

[edit]

(C++20)

returns an iterator to the beginning of a range
(customization point object)

[edit]