std::ranges...perator*,->(3)

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

πŸ’… std::ranges...perator*,->(3) πŸ’…

okay so bestie, this page is from the C++ Standard Libary manual (yes, that’s how it’s spelled here, no cap), and it’s all about the operator* and operator-> for std::ranges::join_view::iterator. Very niche, very main character, but we’re gonna get through it together.

🌸 NAME 🌸

  • std::ranges::join_view::iterator::operator*,-> β€” and the short description is literally std::ranges::join_view::iterator::operator*,-> too. The page says it twice, so we’re saying it twice. Periodt.

πŸŒ€ Synopsis πŸŒ€

          constexpr decltype(auto) operator*() const;                      (1)
       (since C++20)
          constexpr InnerIter operator->() const                           (2)
       (since C++20)
            requires /*has-arrow*/<InnerIter> && std::copyable<InnerIter>;

Two overloads, both since C++20. Overload (2) has that requires clause: /*has-arrow*/<InnerIter> && std::copyable<InnerIter>; β€” don’t skip it, bestie.

Returns the element the underlying iterator inner_ points to.

  1. (1) is equivalent to return *inner_;.
  2. (2) is equivalent to return inner_;.

πŸ“ Parameters πŸ“

  • Parameters: (none) β€” literally zero parameters. Not one. Nada. πŸ’…

πŸŽ€ Return value πŸŽ€

  • Return value: the current element. That’s it. That’s the vibe.

🌈 Example 🌈

This section is incomplete.

Reason: no example.

Not me crying because there’s no example 😭. Anyway.

πŸ‘‘ Category πŸ‘‘

  • * Todo no example β€” yeah, it’s a todo and there’s no example. We move.

cute sign-off: this page came from http://cppreference.com, dated 2024.06.10. Stay slay, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from