Scroll to navigation

std::ranges::zip_view::iterator::operator*(3) C++ Standard Libary std::ranges::zip_view::iterator::operator*(3)

NAME

std::ranges::zip_view::iterator::operator* - std::ranges::zip_view::iterator::operator*

Synopsis


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


Returns a std::tuple that consists of underlying pointed-to elements.


Let current_ denote the underlying tuple-like object that holds iterators to
elements of adapted views. Equivalent to:


return /*tuple-transform*/([](auto& i) -> decltype(auto) { return *i; }, current_);

Parameters


(none)

Return value


The current tuple-like element.

Notes


operator-> is not provided.

Example


This section is incomplete
Reason: no example

Category:


* Todo no example

2024.06.10 http://cppreference.com