std::ranges::zip_view<Views...>:: iterator <Const>:: operator[]
From cppreference.net
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... > ; |
(C++23以降) | |
現在の位置からの指定されたオフセットにある基盤となるポインタ先要素で構成される std::tuple を取得します。
次と同等:
return /*tuple-transform*/([&]<class I>(I& i) -> decltype(auto) { return i[iter_difference_t<I>(n)]; }, current_);
パラメータ
| n | - | 現在位置からの相対位置 |
戻り値
取得されたタプルライクな要素。
例
|
このセクションは不完全です
理由: 例がありません |