std::ranges::chunk_view<V>::iterator<Const>::operator[]
来自 zh.cppreference.net
constexpr value_type operator[]( difference_type pos ) const
requires ranges::random_access_range<Base>;
|
(自C++23起) | |
返回指定相对位置的元素。
等价于:return *(*this + pos);.
参数
| pos | - | 相对于当前位置的偏移量 |
返回值
相对于当前位置偏移量
pos
处的元素(类型为
value_type
)。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
(C++23)
|
访问元素
(公开成员函数) |