]>
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 | #if !defined(BOOST_FUSION_FOR_EACH_FWD_HPP_INCLUDED) | |
8 | #define BOOST_FUSION_FOR_EACH_FWD_HPP_INCLUDED | |
9 | ||
10 | #include <boost/fusion/support/config.hpp> | |
11 | #include <boost/fusion/support/is_sequence.hpp> | |
12 | #include <boost/utility/enable_if.hpp> | |
13 | ||
14 | namespace boost { namespace fusion | |
15 | { | |
16 | namespace result_of | |
17 | { | |
18 | template <typename Sequence, typename F> | |
19 | struct for_each; | |
20 | } | |
21 | ||
22 | template <typename Sequence, typename F> | |
23 | BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
24 | inline typename | |
25 | enable_if< | |
26 | traits::is_sequence<Sequence> | |
27 | , void | |
28 | >::type | |
29 | for_each(Sequence& seq, F const& f); | |
30 | ||
31 | template <typename Sequence, typename F> | |
32 | BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
33 | inline typename | |
34 | enable_if< | |
35 | traits::is_sequence<Sequence> | |
36 | , void | |
37 | >::type | |
38 | for_each(Sequence const& seq, F const& f); | |
39 | }} | |
40 | ||
41 | #endif |