std::ranges::zip_view<Views...>:: iterator <Const>:: operator[]
From cppreference.com
C++
Ranges library
|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Helper items | |||||||||||||||||
|
|
std::ranges::zip_view
Member functions | ||||
Deduction guides | ||||
Iterator | ||||
Member functions | ||||
zip_view::
iterator
::operator[]
|
||||
Non-member functions | ||||
Sentinel | ||||
Member functions | ||||
Non-member functions | ||||
constexpr
auto
operator
[
]
(
difference_type n
)
const
requires /*all-random-access*/ < Const, Views... > ; |
(since C++23) | |
Obtains a std::tuple that consists of underlying pointed-to elements at given offset relative to current location.
Equivalent to:
return /*tuple-transform*/([&]<class I>(I& i) -> decltype(auto) { return i[iter_difference_t<I>(n)]; }, current_);
Parameters
n | - | position relative to current location |
Return value
The obtained tuple-like element.
Example
This section is incomplete
Reason: no example |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/zip_view/iterator/operator_at&oldid=149293
"