/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2007 Dan Marsden Copyright (c) 2009-2010 Christopher Schmidt 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) This is an auto-generated file. Do not edit! ==============================================================================*/ # if BOOST_WORKAROUND (BOOST_MSVC, < 1500) # define BOOST_FUSION_FOLD_IMPL_ENABLER(T) void # else # define BOOST_FUSION_FOLD_IMPL_ENABLER(T) typename T::type # endif namespace boost { namespace fusion { namespace detail { template struct result_of_it_fold {}; template struct result_of_it_fold<0,It,State,F , typename boost::enable_if_has_type::type # if BOOST_WORKAROUND (BOOST_MSVC, < 1500) , true # endif > { typedef typename State::type type; }; template struct result_of_it_fold= 1500) typename boost::disable_if_c::type::type # else BOOST_FUSION_FOLD_IMPL_ENABLER(State) # endif >::type # if BOOST_WORKAROUND (BOOST_MSVC, < 1500) , false # endif > : result_of_it_fold< SeqSize-1 , typename result_of::next::type , boost::result_of< F( typename add_reference::type, typename fusion::result_of::deref::type ) > , F > {}; template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of_it_fold< 0 , It , State , F >::type it_fold(mpl::int_<0>, It const&, typename State::type state, F&) { return state; } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename lazy_enable_if_c< SeqSize != 0 , result_of_it_fold< SeqSize , It , State , F > >::type it_fold(mpl::int_, It const& it, typename State::type state, F& f) { return it_fold< typename result_of::next::type , boost::result_of< F( typename add_reference::type, typename fusion::result_of::deref::type ) > , F >( mpl::int_() , fusion::next(it) , f(state, fusion::deref(it)) , f ); } template::value , bool = traits::is_segmented::value> struct result_of_fold {}; template struct result_of_fold : result_of_it_fold< result_of::size::value , typename result_of::begin::type , add_reference , F > {}; template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of_fold::type fold(Seq& seq, State& state, F& f) { return it_fold< typename result_of::begin::type , add_reference , F >( typename result_of::size::type() , fusion::begin(seq) , state , f ); } } namespace result_of { template struct fold : detail::result_of_fold {}; } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq , State const , F >::type fold(Seq& seq, State const& state, F f) { return detail::fold(seq, state, f); } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq const , State const , F >::type fold(Seq const& seq, State const& state, F f) { return detail::fold(seq, state, f); } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq , State , F >::type fold(Seq& seq, State& state, F f) { return detail::fold(seq, state, f); } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline typename result_of::fold< Seq const , State , F >::type fold(Seq const& seq, State& state, F f) { return detail::fold(seq, state, f); } }}