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

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

okay so bestie, this page is std::ranges...::operator*(3), straight outta the C++ Standard Libary manual β€” section 3, and yes the manual spells it Libary, we’re not arguing with the source today πŸ’….

πŸ’– NAME πŸ’–

  • std::ranges::chunk_view::iterator::operator* β€” the dereference bestie in question
  • std::ranges::chunk_view::iterator::operator* β€” yes, it’s listed twice, and we respect the duplication 🫢

πŸŒ€ Synopsis πŸŒ€

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

This one returns the current element in the chunk_view ✨

Let current_, end_, and n_ be the underlying data members. Write those names down, they matter.

Equivalent to:

return views::take(ranges::subrange(current_, end_), n_).

Before the invocation, the expression current_ != end_ must be true β€” otherwise the behavior is undefined. Not β€œoopsie” undefined, like actual undefined behavior, so vibe check that iterator first, fr fr πŸ’€

πŸŽ€ Parameters πŸŽ€

  • (none) β€” literally no parameters, she takes none, periodt

✨ Return value ✨

The current element, which is an object of value_type. Slay πŸ‘‘

πŸ“ Example πŸ“

This section is incomplete. Reason: no example 😭

πŸ‘€ 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. That’s the cute sign-off, bestie: go forth and dereference responsibly 🫢

πŸ“¦ where this page comes from