std::ranges...view::begin(3)
std::ranges::enumerate_view::begin π
okay bestie, welcome to the C++ Standard Libary manual, section 3 β and we're hyping up std::ranges::enumerate_view::begin, the member function that hands you the iterator to the very first element of an enumerate_view. It's giving "start the range off right" main character energy β¨.
πΈ NAME πΈ
std::ranges::enumerate_view::begin β std::ranges::enumerate_view::begin. Yes bestie, the name is the name, and it's iconic π.
β¨ Synopsis β¨
Here's the signature tea, copied with care:
constexpr auto begin() requires (!__simple_view<V>);
(1) (since C++23)
constexpr auto begin() const requires
(2) (since C++23)
/*range-with-movable-references*/<const V>;
Returns an iterator to the first element of the enumerate_view.
Let base_ denote the underlying view.
- Equivalent to
return /*iterator*/<false>(ranges::begin(base_), 0);. - Equivalent to
return /*iterator*/<true>(ranges::begin(base_), 0);.
π«Ά Parameters π«Ά
- none β she takes no parameters, periodt π
π Return value π
Iterator to the first element. That's the whole point, and it ate π₯.
π¦ Example π¦
This section is incomplete.
Reason: no example.
not me staring at the missing example like π β the page really says no example, so we're not making one up, bestie.
π 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
mwah π that's the whole page β sourced from http://cppreference.com, version/date 2024.06.10, and it's page std::ranges...view::begin(3). bye bestie, go slay your ranges π«Άβ¨
π¦ 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