| ||||||||||||||||||||||
| 范围原语 | |||||||
| |||||||
| 范围概念 | |||||||||||||||||||
| |||||||||||||||||||
| 范围工厂 | |||||||||
| |||||||||
| 范围适配器 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 辅助项 | |||||||||||||||||
|
| ||||||||||||||||
constexpr decltype(auto) operator[]( difference_type n ) const
requires ranges::random_access_range<Base>;
|
(C++20 起) | |
返回位于指定相对位置的变换后的元素。
相当于返回 std::invoke(*parent_->fun_, current_[n]),其中 *parent_->fun_ 是存储于父 transform_view 中的变换函数,而 current_ 是指向 V 中的底层迭代器。
| n | - | 相对于当前位置的位置。 |
变换后的元素
| 本节未完成 原因:暂无示例 |