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

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

okay so bestie, welcome to the std::ranges...by_view::end(3) page from the C++ Standard Libary βœ¨πŸ’…. This is the manual page for std::ranges::chunk_by_view::end, and the title and NAME are lowkey twinning β€” iconic behavior, fr fr 🫢.

πŸŽ€ NAME πŸŽ€

std::ranges::chunk_by_view::end β€” std::ranges::chunk_by_view::end

🌸 Synopsis 🌸

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

Returns an iterator or a sentinel representing the end of the chunk_by_view.

Equivalent to:

if constexpr (ranges::common_range<V>)
    return /*iterator*/(*this, ranges::end(base_), ranges::end(base_));
else
    return std::default_sentinel;

πŸ¦‹ Parameters πŸ¦‹

(none) β€” literally nothing to pass here, bestie 🫢

πŸ’– Return value πŸ’–

An iterator to the element following the last element, or a sentinel which compares equal to the end iterator. πŸ‘‘

✨ Notes ✨

end() returns an iterator if and only if the underlying view is a common_range:

chunk_by_view<V,Pred> models common_range whenever V does.

πŸŽ€ Example πŸŽ€

This section is incomplete

Reason: no example 😭

🌈 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

mwah πŸ’‹ β€” source/version: http://cppreference.com, dated 2024.06.10, and the page is std::ranges...by_view::end(3). periodt 🌟

πŸ“¦ where this page comes from