std::ranges...::operator*(3)
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 questionstd::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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms