std::ranges::cartesian_product_view<First, Vs...>:: iterator <Const>:: operator[]
From cppreference.net
<
cpp
|
ranges
|
cartesian product view
|
iterator
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::cartesian_product_view
| Member functions | ||||
| Deduction guides | ||||
| Iterator | ||||
| Member functions | ||||
|
cartesian_product_view::
iterator
::operator[]
|
||||
| Non-member functions | ||||
|
constexpr
reference operator
[
]
(
difference_type n
)
const
requires /*cartesian-product-is-random-access*/ < Const, First, Vs... > ; |
(自 C++23 起) | |
返回指定相对位置的元素。等效于: return * ( ( * this ) + n ) ; 。
目录 |
参数
| n | - | 相对于当前位置的偏移量 |
返回值
相对于当前位置偏移量为 n 处的元素。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++23)
|
访问元素
(公开成员函数) |