std::ranges...::operator*(3)

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

std::ranges...::operator*(3) πŸ’…βœ¨

okay bestie, welcome to the C++ Standard Libary corner of the group chat 🫢 this page is all about std::ranges::enumerate_view::iterator::operator*, and ngl it’s a tiny icon. no cap.


✨ NAME ✨

Two name lines, same energy, zero skips:

  • std::ranges::enumerate_view::iterator::operator*
  • std::ranges::enumerate_view::iterator::operator*

🫢 Synopsis 🫢

Here’s the whole signature, and yes it’s giving main character energy:

constexpr auto operator*() const;  (since C++23)

What it does? It returns the current element in the enumerate_view 😌 literally that’s the whole vibe. No cap.

Equivalent to:

return reference-type(pos_, *current_);

🌸 Parameters 🌸

  • (none) β€” bestie, there are literally no parameters here. Zero. Zilch. Iconic. πŸŽ€

πŸ’– Return value πŸ’–

  • The current element. πŸ’… That’s it. That’s the return.

πŸŽ€ Example πŸŽ€

This section is incomplete Reason: no example

no example bestie, we’re not gonna lie to you πŸ™ˆ


πŸ¦‹ See also πŸ¦‹

  • operator[] β€” accesses an element by index (C++23) (public member function)

πŸ‘‘ Category πŸ‘‘

  • * Todo no example

mwah πŸ’‹ β€” source/version: http://cppreference.com, date: 2024.06.10, page: std::ranges...::operator*(3).

πŸ“¦ where this page comes from