22#ifndef _ITERTOOLS_TRANSFORM_HPP
23#define _ITERTOOLS_TRANSFORM_HPP
49 template <typename Iter, typename F, typename Value = std::invoke_result_t<F, typename std::iterator_traits<Iter>::value_type>>
86 if (other.
lambda.has_value())
155 [[nodiscard]]
auto end() const noexcept {
return cend(); }
188 template <
typename R,
typename F> [[nodiscard]]
auto transform(R &&rg, F lambda) {
auto transform(R &&rg, F lambda)
Lazy-transform a given range by applying a unary callable object to every element of the original ran...
sentinel_t< Iter > make_sentinel(Iter it)
Create an itertools::sentinel_t from an iterator using template type deduction.
Provides a CRTP base class for various iterator types in itertools.
Provides a generic sentinel type for various iterator types in itertools.