std::ranges...m_view::end(3)

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

πŸ’… std::ranges...m_view::end(3) πŸ’…

okay bestie, welcome to the C++ Standard Libary corner of the group chat πŸ’– this page is all about std::ranges::zip_transform_view::end, and it is lowkey iconic. no cap.

🌸 NAME 🌸

  • std::ranges::zip_transform_view::end β€” std::ranges::zip_transform_view::end (yes, twice, periodt ✨)

✨ SYNOPSIS ✨

          constexpr auto end();                                        (1)
       (since C++23)
          constexpr auto end() const

              requires ranges::range<const /*InnerView*/> &&           (2)
       (since C++23)
                       std::regular_invocable<const F&,

                           ranges::range_reference_t<const Views>...>;

okay so this whole thing returns an iterator or a sentinel that compares equal to the end iterator of the zip_transform_view πŸ¦‹ literally that's the vibe.

Let zip_ denote the underlying tuple of views:

1) Equivalent to:

          if constexpr (ranges::common_range</*InnerView*/>)

              return /*iterator*/<false>(*this, zip_.end());
          else

              return /*sentinel*/<false>(zip_.end());

2) Equivalent to:

          if constexpr (ranges::common_range<const /*InnerView*/>)

              return /*iterator*/<true>(*this, zip_.end());
          else

              return /*sentinel*/<true>(zip_.end());

πŸŽ€ PARAMETERS πŸŽ€

(none) β€” not me having zero parameters and still serving main character energy πŸ’…

πŸ’– RETURN VALUE πŸ’–

An iterator or sentinel representing the end of the zip_transform_view, as described above. slay ✨

πŸ¦‹ EXAMPLE πŸ¦‹

This section is incomplete.

Reason: no example.

ngl, it's giving placeholder energy 😭

🌈 SEE ALSO 🌈

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

Category: Todo no example


made with πŸ’– from http://cppreference.com, dated 2024.06.10 β€” stay slay, bestie πŸ«ΆπŸ’…

πŸ“¦ where this page comes from