Namespaces
Variants
Views
Actions

std::ranges::adjacent_transform_view<V,F,N>::iterator<Const>::operator*

From cppreference.com
 
 
Ranges library
Range adaptors
 
 
constexpr decltype(auto) operator*() const noexcept(/* see below */);
(since C++23)

Returns the current element in the adjacent_transform_view.

Let parent_ and inner_ be the data members of the iterator. Equivalent to:

return apply([&](const auto&... iters) -> decltype(auto)
             {
                 return invoke(*parent_->fun_, *iters...);
             },
             inner_.current_);

Contents

[edit] Parameters

(none)

[edit] Return value

The current element.

[edit] Exceptions

Let Is be the pack 0, 1, ..., (N - 1).

noexcept specification:  
noexcept(std::invoke(*parent_->fun_, *std::get<Is>(inner_.current_)...))

[edit] Example

[edit] See also

accesses an element by index
(public member function)