/*============================================================================= Copyright (c) 2003 Joel de Guzman Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_ALGORITHM_TRANSFORM_HPP) #define FUSION_ALGORITHM_TRANSFORM_HPP #include namespace boost { namespace fusion { namespace meta { template struct transform { typedef transform_view type; }; } namespace function { struct transform { template struct apply : meta::transform {}; template typename apply::type operator()(Sequence const& seq, F const& f) const { return transform_view(seq, f); } template typename apply::type operator()(Sequence& seq, F const& f) const { return transform_view(seq, f); } }; } function::transform const transform = function::transform(); }} #endif