PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/Src/Dependencies/Boost/boost/fusion/algorithm/iteration/for_each.hpp

http://hadesmem.googlecode.com/
C++ Header | 43 lines | 28 code | 8 blank | 7 comment | 0 complexity | 73385906106ff9ba4054aff22f04938f MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2007 Joel de Guzman
 3    Copyright (c) 2007 Dan Marsden
 4
 5    Distributed under the Boost Software License, Version 1.0. (See accompanying 
 6    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 7==============================================================================*/
 8#if !defined(BOOST_FUSION_FOR_EACH_20070527_0943)
 9#define BOOST_FUSION_FOR_EACH_20070527_0943
10
11#include <boost/fusion/algorithm/iteration/detail/for_each.hpp>
12
13#include <boost/fusion/support/category_of.hpp>
14
15namespace boost { namespace fusion {
16
17    namespace result_of
18    {
19        template <typename Sequence, typename F>
20        struct for_each
21        {
22            typedef void type;
23        };
24    }
25
26    struct random_access_traversal_tag;
27
28    template <typename Sequence, typename F>
29    inline void
30    for_each(Sequence& seq, F const& f)
31    {
32        detail::for_each(seq, f, typename traits::category_of<Sequence>::type());
33    }
34
35    template <typename Sequence, typename F>
36    inline void
37    for_each(Sequence const& seq, F const& f)
38    {
39        detail::for_each(seq, f, typename traits::category_of<Sequence>::type());
40    }
41}}
42
43#endif