Namespaces
Variants
Views
Actions

deduction guides for std::ranges::transform_view

From cppreference.com
 
 
Ranges library
Range adaptors
 
 
template< class R, class F >
transform_view( R&&, F ) -> transform_view<views::all_t<R>, F>;
(since C++20)

The deduction guide is provided for std::ranges::transform_view to allow deduction from range and transformation function.

[edit] Example