Namespaces
Variants
Views
Actions

std::ranges::zip_view<Views...>::iterator<Const>::operator*

From cppreference.com
< cpp‎ | ranges‎ | zip view‎ | iterator
 
 
Ranges library
Range access
Range conversions
(C++23)

Range primitives



Dangling iterator handling
Range concepts
Views

Range factories
Range adaptors
Range generators
Range adaptor objects
Range adaptor closure objects
Helper items
(until C++23)(C++23)


 
 
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_);

Contents

[edit] Parameters

(none)

[edit] Return value

The current tuple-like element.

[edit] Notes

operator-> is not provided.

[edit] Example