/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman Copyright (c) 2007 Dan Marsden Distributed under 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(BOOST_FUSION_FOLD_05052005_1214) #define BOOST_FUSION_FOLD_05052005_1214 #include #include #include #include #include namespace boost { namespace fusion { struct random_access_traversal_tag; namespace result_of { template struct fold : fusion::detail::choose_fold< Sequence, State, F , is_base_of::type>::value> {}; } template inline typename result_of::fold::type fold(Sequence& seq, State const& state, F f) { return detail::fold(seq, state, f, typename traits::category_of::type()); } template inline typename result_of::fold::type fold(Sequence const& seq, State const& state, F f) { return detail::fold(seq, state, f, typename traits::category_of::type()); } }} #endif