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

From cppreference.com
 
 
 
 
constexpr decltype(auto) operator*() const;
(since C++20)

Returns the transformed element.

Effectively returns std::invoke(*parent_->fun_, *current_), where *parent_->fun_ is the transformation function stored in the parent transform_view, and current_ is the underlying iterator into V.

Parameters

(none)

Return value

The transformed element.

Notes

operator-> is not provided.

The behavior is undefined if the pointer to parent transform_view is null (e.g. if *this is default constructed), or if the parent transform_view does not hold a transformation function (e.g. if the parent transform_view is default constructed, and the transformation function is not default constructible).

Example