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

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

🌸 NAME 🌸

okay bestie, welcome to the page std::ranges...::operator*(3) from the C++ Standard Libary πŸ’– (manual name folded in right here near the top, no copied header line needed). The NAME is literally std::ranges::chunk_view::outer-iterator::operator* β€” std::ranges::chunk_view::outer-iterator::operator* (yes, it's listed twice; that's the lore, periodt πŸ’…).

✨ Synopsis ✨

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

Returns the current chunk in the chunk_view πŸŽ€.

Let parent_ be the underlying pointer, and value_type be a nested class that is the value type of the iterator. value_type is doing main character energy here, ngl πŸ’«.

Equivalent to: return value_type(*parent_);.

Before invocation of this operator the expression *this == std::default_sentinel must be false. That's a real precondition, bestie β€” do not skip the vibe check 🫢.

πŸ¦‹ Parameters πŸ¦‹

(none) β€” literally no parameters, zero, nada, the page said so 😌.

🌈 Return value 🌈

The current element (a chunk). That's it. That's the return value. Iconic. ✨

πŸŽ€ Example πŸŽ€

This section is incomplete β€” Reason: no example 😭 (the manual is being mysterious, not me).

πŸ’€ Category πŸ’€

* Todo no example β€” that's the whole category, no cap.


that's the tea from http://cppreference.com, dated 2024.06.10, on the std::ranges...::operator*(3) page β€” source/date sign-off done, mwah πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from