diff --git a/tpie/pipelining/std_glue.h b/tpie/pipelining/std_glue.h index 865c5a4de..ef87b98d1 100644 --- a/tpie/pipelining/std_glue.h +++ b/tpie/pipelining/std_glue.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace tpie::pipelining { namespace bits { @@ -96,22 +97,8 @@ class output_vector_t : public node { std::vector & output; }; - template -class lambda_t: public node { -public: - typedef typename F::argument_type item_type; - - lambda_t(dest_t dest, const F & f): f(f), dest(std::move(dest)) { - } - - void push(const item_type & item) { - dest.push(f(item)); - } -private: - F f; - dest_t dest; -}; +using lambda_t [[deprecated("Use 'map_t' in 'tpie/pipelining/map.h'.")]] = map_t; template class exclude_lambda_t: public node { @@ -174,6 +161,7 @@ pipe_end, std::vector &> > output_ /// \param f The functor that should be applied to items /////////////////////////////////////////////////////////////////////////////// template +[[deprecated("Use 'map' in 'tpie/pipelining/map.h'.")]] inline pipe_middle, F> > lambda(const F & f) { return {f}; }