]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2011 Eric Niebler | |
3 | ||
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 | ==============================================================================*/ | |
7 | ||
8 | #ifndef BOOST_FUSION_ALGORITHM_ITERATION_REVERSE_FOLD_FWD_HPP | |
9 | #define BOOST_FUSION_ALGORITHM_ITERATION_REVERSE_FOLD_FWD_HPP | |
10 | ||
11 | namespace boost { namespace fusion | |
12 | { | |
13 | namespace result_of | |
14 | { | |
15 | template<typename Seq, typename State, typename F> | |
16 | struct reverse_fold; | |
17 | } | |
18 | ||
19 | template<typename Seq, typename State, typename F> | |
20 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
21 | inline typename result_of::reverse_fold< | |
22 | Seq | |
23 | , State const | |
24 | , F | |
25 | >::type | |
26 | reverse_fold(Seq& seq, State const& state, F f); | |
27 | ||
28 | template<typename Seq, typename State, typename F> | |
29 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
30 | inline typename result_of::reverse_fold< | |
31 | Seq const | |
32 | , State const | |
33 | , F | |
34 | >::type | |
35 | reverse_fold(Seq const& seq, State const& state, F f); | |
36 | ||
37 | template<typename Seq, typename State, typename F> | |
38 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
39 | inline typename result_of::reverse_fold< | |
40 | Seq | |
41 | , State | |
42 | , F | |
43 | >::type | |
44 | reverse_fold(Seq& seq, State& state, F f); | |
45 | ||
46 | template<typename Seq, typename State, typename F> | |
47 | BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
48 | inline typename result_of::reverse_fold< | |
49 | Seq const | |
50 | , State | |
51 | , F | |
52 | >::type | |
53 | reverse_fold(Seq const& seq, State& state, F f); | |
54 | }} | |
55 | ||
56 | #endif |