variable template
std::ranges::views::adjacent_transform
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
template<size_t N>
constexpr /* implementation-defined */ adjacent_transform = {};Call signatures
adjacent_transform is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class F> [[nodiscard]] constexpr auto adjacent_transform( F&& f) noexcept(noexcept(bind-adaptor(*this, static_cast<F &&>(f)))) requires requires { bind-adaptor(*this, static_cast<F&&>(f)); }; - (2)
template<class E, class F> requires (N == 0 && std::ranges::forward_range<E> && requires { zip_transform_fn{}(std::declval<F>( )); }) || requires { std::ranges::adjacent_transform_view<std::views::all_t<E>, std::decay_t<F>, N>( std::declval<E>(), std::declval<F>( )); } [[nodiscard]] constexpr auto adjacent_transform(E&& e, F&& f);