|
| 范围原语 | |||
|
| 范围概念 | |||||||
|
| 范围工厂 | ||||||
|
| 范围适配器 | ||||||||||||||||||||||
|
|
| 辅助项 | |||||
|
|
constexpr auto operator[]( difference_type pos ) const
requires ranges::random_access_range<Base>;
|
(C++23 起) | |
返回位于指定相对位置的元素。
令 current_ 与 n_ 为底层数据成员。等价于:return views::counted(current_ + pos, n_);。
| pos | - | 相对于当前位置的位移 |
移动 pos 位后的元素(类型为 value_type)。
| 本节未完成 原因:暂无示例 |
(C++23) |
访问元素 (公开成员函数) |