table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::ranges::zip_view::iterator(3) | C++ Standard Libary | std::ranges::zip_view::iterator(3) |
NAME¶
std::ranges::zip_view::iterator - std::ranges::zip_view::iterator
Synopsis¶
template< bool Const > (exposition only*) class /*iterator*/;
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
* std::random_access_iterator_tag if all-random-access<Const,
Views...> is true, otherwise
* std::bidirectional_iterator_tag if all-bidirectional<Const,
iterator_concept Views...> is true, otherwise
* std::forward_iterator_tag if all-forward<Const, Views...> is true,
otherwise
* std::input_iterator_tag. iterator_category * std::input_iterator_tag if
all-forward<Const, Views...> is true, (conditionally * not defined
otherwise. present) value_type *
std::tuple<ranges::range_value_t<Views>...> if Const is false,
* std::tuple<ranges::range_value_t<const Views>...> otherwise.
* std::common_type_t<ranges::range_difference_t<Views>...> if
Const is difference_type false,
* std::common_type_t<ranges::range_difference_t<const Views>...>
otherwise.
Data members
Member name Definition
* std::tuple<ranges::iterator_t<Views>...> if Const is false, or
current_ (private) * std::tuple<ranges::iterator_t<const
Views>...> otherwise.
(exposition-only member object*)
Member functions¶
constructor constructs an iterator
(public member function) operator* 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
operator[] offset
(public member function) operator++ operator++(int) operator--
advances or decrements the underlying iterators operator--(int) (public
member function) operator+= operator-=
Non-member functions¶
operator== operator< operator> compares the underlying
iterators operator<= (function) operator>= operator<=>
(C++23) operator+ performs iterator arithmetic on underlying iterators
operator- (function) (C++23) iter_move obtains a tuple-like value
that denotes underlying pointed-to elements to be (C++23) moved
(function) iter_swap swaps underlying pointed-to elements (C++23)
(function)
Example¶
This section is incomplete
Reason: no example
| 2026.11.10 | http://cppreference.com |