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

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

πŸ¦‹ std::ranges::join_with_view::begin πŸ¦‹

okay so bestie, this page is from the C++ Standard Libary manual, section 3, and the whole main-character moment is std::ranges::join_with_view::begin. no cap, that’s the exact page name. πŸ’–

✨ NAME ✨

std::ranges::join_with_view::begin β€” std::ranges::join_with_view::begin

✨ Synopsis ✨

Overload (1):

constexpr auto begin();

(1) β€” since C++23.

Overload (2):

constexpr auto begin() const
  requires ranges::input_range<const V> &&
           ranges::forward_range<const Pattern> &&
           std::is_reference_v<ranges::range_reference_t<const V>>;

(2) β€” since C++23.

Returns an iterator to the first element of the join_with_view. 🫢

Let base_ denote the underlying view:

  1. Equivalent to return /*iterator*/<true>{*this, ranges::begin(base_)}; if V and Pattern each model __SimpleView and ranges::range_reference_t<V> is a reference type; otherwise equivalent to return /*iterator*/<false>{*this, ranges::begin(base_)};.
  2. Equivalent to return /*iterator*/<true>{*this, ranges::begin(base_)};.

✨ Parameters ✨

  • (none) β€” literally no parameters, bestie. πŸ’…

✨ Return value ✨

An iterator to the first element of the join_with_view, as described above. That’s the whole return-value vibe. 🌈

✨ Example ✨

This section is incomplete.

Reason: no example

✨ 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

source/version/date sign-off: http://cppreference.com, 2024.06.10, std::ranges...view::begin(3) β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from