命名空间
变体
操作

std::ranges::chunk_view<V>::iterator<Const>::operator[]

来自 cppreference.cn
< cpp‎ | ranges‎ | chunk view‎ | iterator
 
 
范围库 (Ranges library)
范围适配器 (Range adaptors)
 
std::ranges::chunk_view
成员函数
input_range 的类
推导指引
outer-iterator
outer-iterator::value_type
inner-iterator
 
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)
访问元素
(公开成员函数)