1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
8 #ifndef BOOST_FUSION_ALGORITHM_ITERATION_FOLD_FWD_HPP
9 #define BOOST_FUSION_ALGORITHM_ITERATION_FOLD_FWD_HPP
11 namespace boost { namespace fusion
15 template<typename Seq, typename State, typename F>
19 template<typename Seq, typename State, typename F>
20 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
21 inline typename result_of::fold<
26 fold(Seq& seq, State const& state, F f);
28 template<typename Seq, typename State, typename F>
29 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
30 inline typename result_of::fold<
35 fold(Seq const& seq, State const& state, F f);
37 template<typename Seq, typename State, typename F>
38 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
39 inline typename result_of::fold<
44 fold(Seq& seq, State& state, F f);
46 template<typename Seq, typename State, typename F>
47 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
48 inline typename result_of::fold<
53 fold(Seq const& seq, State& state, F f);