std::ranges::adjacent_transform_view<V,F,N>::adjacent_transform_view - cppreference.com (original) (raw)

adjacent_transform_view() = default; (1) (since C++23)
constexpr explicit adjacent_transform_view( V base, F fun ); (2) (since C++23)

Constructs an adjacent_transform_view.

  1. Move constructs the underlying data members: fun_ with std::move(fun) and inner_ with std::move(base).

[edit] Parameters

base - the underlying view
fun - the N-ary transformation function

[edit] Example