Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::ranges::zip_view<Views...>::iterator

The iterator type of a possibly const-qualified zip_view, returned by zip_view::begin and in certain cases by zip_view::end.

NotebookLM
template< bool Const >
class /*iterator*/;
(exposition only*)

The iterator type of a possibly const-qualified zip_view, returned by zip_view::begin and in certain cases by zip_view::end.

The type /*iterator*/<true> or /*iterator*/<false> treats the underlying views as const-qualified or non-const-qualified respectively.

Member types

Member type Definition
iterator_concept
iterator_category
(conditionally present)
value_type
difference_type

Data members

Member name Definition
current_ (private)

Member functions

constructs an iterator
(public member function)
obtains a tuple-like value that consists of underlying pointed-to elements
(public member function)
obtains a tuple-like value that consists of underlying elements at given offset
(public member function)
advances or decrements the underlying iterators
(public member function)

Non-member functions

compares the underlying iterators
(function)
performs iterator arithmetic on underlying iterators
(function)
(C++23)
obtains a tuple-like value that denotes underlying pointed-to elements to be moved
(function)
(C++23)
swaps underlying pointed-to elements
(function)

Example

This section is incomplete
Reason: no example

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.