Chris@16
|
1 /*=============================================================================
|
Chris@16
|
2 Copyright (c) 2011 Eric Niebler
|
Chris@16
|
3
|
Chris@16
|
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Chris@16
|
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 ==============================================================================*/
|
Chris@16
|
7
|
Chris@16
|
8 #ifndef BOOST_FUSION_ALGORITHM_ITERATION_FOLD_FWD_HPP
|
Chris@16
|
9 #define BOOST_FUSION_ALGORITHM_ITERATION_FOLD_FWD_HPP
|
Chris@16
|
10
|
Chris@16
|
11 namespace boost { namespace fusion
|
Chris@16
|
12 {
|
Chris@16
|
13 namespace result_of
|
Chris@16
|
14 {
|
Chris@16
|
15 template<typename Seq, typename State, typename F>
|
Chris@16
|
16 struct fold;
|
Chris@16
|
17 }
|
Chris@16
|
18
|
Chris@16
|
19 template<typename Seq, typename State, typename F>
|
Chris@16
|
20 typename result_of::fold<
|
Chris@16
|
21 Seq
|
Chris@16
|
22 , State const
|
Chris@16
|
23 , F
|
Chris@16
|
24 >::type
|
Chris@16
|
25 fold(Seq& seq, State const& state, F f);
|
Chris@16
|
26
|
Chris@16
|
27 template<typename Seq, typename State, typename F>
|
Chris@16
|
28 typename result_of::fold<
|
Chris@16
|
29 Seq const
|
Chris@16
|
30 , State const
|
Chris@16
|
31 , F
|
Chris@16
|
32 >::type
|
Chris@16
|
33 fold(Seq const& seq, State const& state, F f);
|
Chris@16
|
34
|
Chris@16
|
35 template<typename Seq, typename State, typename F>
|
Chris@16
|
36 typename result_of::fold<
|
Chris@16
|
37 Seq
|
Chris@16
|
38 , State const
|
Chris@16
|
39 , F
|
Chris@16
|
40 >::type
|
Chris@16
|
41 fold(Seq& seq, State& state, F f);
|
Chris@16
|
42
|
Chris@16
|
43 template<typename Seq, typename State, typename F>
|
Chris@16
|
44 typename result_of::fold<
|
Chris@16
|
45 Seq const
|
Chris@16
|
46 , State const
|
Chris@16
|
47 , F
|
Chris@16
|
48 >::type
|
Chris@16
|
49 fold(Seq const& seq, State& state, F f);
|
Chris@16
|
50 }}
|
Chris@16
|
51
|
Chris@16
|
52 #endif
|