std::ranges...::operator*(3)
π¦ std::ranges::zip_transform_view::iterator::operator* π¦
okay bestie, this is the C++ Standard Libary manual page for std::ranges...::operator*(3) β manual name folded in near the top so weβre not copy-pasting that header line like a boring NPC. Itβs giving βiterator dereference but make it zip_transform_view,β and weβre keeping every technical crumb. π
β¨ NAME β¨
std::ranges::zip_transform_view::iterator::operator* -
std::ranges::zip_transform_view::iterator::operator*
π Synopsis π
Signature tea, served exactly:
constexpr decltype(auto) operator*() const (since C++23)
noexcept(/* see description */);
It returns the transformed element you get by applying the invocable object of type F to the underlying pointed-to elements.
Equivalent to:
return
std::apply
(
[&](auto const&... iters) -> decltype(auto)
{
return std::invoke(*parent_->fun_, *iters...);
},
inner_.current_
);
where *parent_->fun_ is the transformation function stored in the parent ranges::zip_transform_view, and current_ is the underlying tuple of iterators into Views....
πΈ Parameters πΈ
- none. literally none. she takes no parameters. π
π Return value π
The element which is the result of transformation (mapping). Slay. β¨
π₯ Exceptions π₯
noexcept specification:
noexcept(std::invoke(*parent_->fun_,
*std::get<INTS>(inner_.current_)...))
where INTS is the pack of integers 0, 1, ..., (sizeof...(Views)-1).
π¦ Notes π¦
operator->is not provided. nope, not invited to the function party. π- The behavior is undefined if the
parent_pointer to parentranges::zip_transform_viewis null (e.g. if*thisis default constructed). This is a danger zone, bestie β donβt do it. π
π Example π
This section is incomplete.
Reason: no example.
The manual said βno exampleβ and honestly we respect the honesty. π
π·οΈ Categories π·οΈ
- conditionally noexcept
- Todo no example
π«Ά thatβs the page, bestie. Source/version: http://cppreference.com; date: 2024.06.10; page: std::ranges...::operator*(3). Periodt. π
π¦ 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