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

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

πŸ’– std::ranges...::operator*(3) πŸ’–

okay so bestie, welcome to the C++ Standard Libary page for std::ranges...::operator*(3) β€” yes that's literally the manual name and yes it's giving "I live in a header" energy πŸ™ˆ this one is short, sweet, and all about dereferencing a slide_view iterator. let's go 🫢


✨ NAME ✨

  • std::ranges::slide_view::iterator::operator* -
  • std::ranges::slide_view::iterator::operator*

🌸 Synopsis 🌸

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

bestie, this bad boy returns the current element in the slide_view. let current_ and n_ be the underlying data members. it's equivalent to:

       return
          views::counted(current_, n_).

lowkey iconic, highkey just two lines of code doing their little thing πŸ’…


πŸŽ€ Parameters πŸŽ€

  • (none) β€” literally zero parameters, so chill. nothing to pass, nothing to stress about 🧚

πŸ¦‹ Return value πŸ¦‹

The current element, which is an object of value_type. slay, that's the whole vibe ✨


😭 Example 😭

This section is incomplete Reason: no example

not me showing up with no example 😭 the page literally says it's incomplete and the reason is "no example" β€” so yeah, nothing to run here bestie, we move 🫢


πŸ‘‘ See also πŸ‘‘

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

🌈 Category 🌈

  • * Todo no example

that's the whole page, bestie πŸ’œ big thanks to http://cppreference.com, date 2024.06.10, and the page std::ranges...::operator*(3) β€” now go dereference something cute βœ¨πŸ’…

πŸ“¦ where this page comes from