std::ranges...view::begin(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

okay so this is the std::ranges...view::begin(3) page from the C++ Standard Libary manual β€” yes, the title has the dots and the manual name has the typo, we are keeping both exactly as they are, no cap πŸ’…βœ¨

✨ NAME ✨

std::ranges::zip_view::begin β€” std::ranges::zip_view::begin (the name is literally the name, iconic behavior, we love a self-referential moment πŸŽ€)

🌸 Synopsis 🌸

bestie, here’s the signature tea, copied exactly:

          constexpr auto begin()                            (1) (since C++23)
              requires (!(/*simple-view*/<Views> && ...));
          constexpr auto begin() const                      (2) (since C++23)
              requires (ranges::range<const Views> && ...);

This one obtains the beginning iterator of zip_view. periodt πŸ¦‹

  1. Equivalent to return /*iterator*/<false>(/*tuple-transform*/(ranges::begin, views_));.
  2. Equivalent to return /*iterator*/<true>(/*tuple-transform*/(ranges::begin, views_));.

πŸŽ€ Parameters πŸŽ€

(none) β€” not a single parameter, she’s low-maintenance like that πŸ’–

🌈 Return value 🌈

Iterator to the first element. that’s the whole vibe πŸ”₯

πŸ’œ Notes πŸ’œ

ranges::range<const ranges::zip_view<Views...>> is modeled if and only if for every type Vi in Views..., const Vi models range. that β€œif and only if” is doing main character work, don’t skip it πŸ‘‘

🧚 Example 🧚

This section is incomplete Reason: no example

no example yet, bestie, the page said what it said πŸ˜­πŸ™ˆ

⭐ See also ⭐

  • end (C++23) β€” returns an iterator or a sentinel to the end (public member function)
  • ranges::begin (C++20) β€” returns an iterator to the beginning of a range (customization point object)

πŸ“ Category πŸ“

* Todo no example


okay that’s the whole page β€” source/version is http://cppreference.com and the date on it is 2024.06.10, so go slay some zips, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from