std::ranges...view::begin(3)
std::ranges...view::begin(3) π β¨
C++ Standard Libary, bestie β manual name folded in right here, exactly as the header had it. Weβre talking about std::ranges::chunk_view::begin, and itβs giving βstart of the chunk viewβ energy.
πΈ NAME πΈ
std::ranges::chunk_view::begin β std::ranges::chunk_view::begin
β¨ Synopsis β¨
Here are the overloads, preserved exactly, with their little version tags:
V models only input_range
constexpr __outer_iterator begin();
(1) (since C++23)
V models forward_range
constexpr auto begin() requires (!__simple_view<V>);
(2) (since C++23)
constexpr auto begin() const requires ranges::forward_range<const
V>;
(3) (since C++23)
Returns an iterator to the first element of the chunk_view.
Let base_ denote the underlying view.
- Available only if
V models input_range. Equivalent to:
current_ = ranges::begin(base_);
remainder_ = n_;
return __outer_iterator(*this);
current_, remainder_, and n_ are underlying exposition only data members of chunk_view.
- Available if
V models forward_range. Equivalent to:
return iterator<false>(this, ranges::begin(base_));
where iterator is exposition only nested class.
- Available if
V models forward_range. Equivalent to:
return iterator<true>(this, ranges::begin(base_));
where iterator is exposition only nested class.
π Parameters π
(none) β literally none, bestie.
π¦ Return value π¦
An iterator to the first element of the chunk_view, as described above.
π Example π
This section is incomplete Reason: no example
π See also π
endβ returns an iterator or a sentinel to the end β(C++23)(public member function)ranges::beginβ returns an iterator to the beginning of a range β(C++20)(customization point object)
β Category: β
- Todo no example
π source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::ranges...view::begin(3) β bye bestie, go slay those chunks! π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms