| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
| Deduction guides | ||||
| Iterator | ||||
| Member functions | ||||
zip_transform_view::iterator::operator[] | ||||
| Non-member functions | ||||
| Sentinel | ||||
| Member functions | ||||
| Non-member functions | ||||
constexpr decltype(auto) operator[]( difference_type n)const requiresranges::random_access_range<Base>; | (since C++23) | |
Returns the element at specified relative location, after transformation.
Equivalent to
returnstd::apply([&]<class...Is>(const Is&...iters)-> decltype(auto){returnstd::invoke(*parent_->fun_, iters[std::iter_difference_t<Is>(n)]...);}, inner_.current_);
where*parent_->fun_ is the transformation function of typeF stored in the parentranges::zip_transform_view, andcurrent_ is the underlying tuple of iterators intoViews....
Contents |
| n | - | position relative to current location. |
The element which is the result of transformation (mapping).
The behavior is undefined if theparent_ pointer to parentranges::zip_transform_view is null (e.g. if*this is default constructed).
| This section is incomplete Reason: no example |