std::ranges...r::operator*(3)
π¦ std::ranges...r::operator*(3) π¦
Okay bestie, welcome to the C++ Standard Libary manual page for std::ranges...r::operator*(3). Manual name, folded in right here near the top: C++ Standard Libary (spelled exactly like that, iykyk). This page is all about the iterator dereference vibe, no cap. π
π NAME π
std::ranges::adjacent_transform_view::iterator::operator* β std::ranges::adjacent_transform_view::iterator::operator*
Yes bestie, it really says the same iconic name twice. We keep every detail. π«Ά
β¨ Synopsis β¨
constexpr decltype(auto) operator*() const noexcept(/* see below */);
(since C++23)
So this is the synopsis, and it is giving conditionally noexcept main character energy. The noexcept(/* see below */) is literally telling you to look below, bestie. π
π Parameters π
(none)
No parameters. Zero. None. The void is empty and honestly kind of peaceful. π§
πΈ Return value πΈ
It returns the current element in the adjacent_transform_view. Thatβs it. Thatβs the whole return value. Slay. β¨
Quick little vocab check before the next bit: let parent_ and inner_ be the data members of the iterator. Important names, keep them in your notes. π
It is equivalent to:
return apply([&](const auto&... iters) -> decltype(auto)
{
return invoke(*parent_->fun_, *iters...);
},
inner_.current_);
That code block is verbatim, bestie. Do not βfixβ the spacing. It ate. π
π Exceptions π
Let Is be the pack 0, 1, ..., (N - 1).
The noexcept specification is:
noexcept(std::invoke(*parent_->fun_,
*std::get<Is>(inner_.current_)...))
Behold: the conditionally noexcept moment. π₯
π Example π
This section is incomplete.
Reason: no example.
Bestie, there is literally no example here. The manual page said βno exampleβ and we are respecting that. π
π¦ See also π¦
operator[]accesses an element by index(C++23)(public member function)
Thatβs the see-also link, fully preserved with its (C++23) and (public member function) badge. π
β Categories β
conditionally noexceptTodo no example
Both categories are here, untouched, living their best life. π
Source/version check, bestie: http://cppreference.com, date 2024.06.10, page std::ranges...r::operator*(3). Thatβs the whole vibe, periodt. Mwah πβ¨π«Ά
π¦ 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