]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/adapted/mpl/detail/begin_impl.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / adapted / mpl / detail / begin_impl.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2011 Joel de Guzman
3     Copyright (c) 2005-2006 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_BEGIN_IMPL_31122005_1209)
9 #define BOOST_FUSION_BEGIN_IMPL_31122005_1209
10
11 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
12 #include <boost/mpl/begin.hpp>
13 #include <boost/type_traits/remove_const.hpp>
14
15 namespace boost { namespace fusion {
16     
17     struct mpl_sequence_tag;
18
19     namespace extension
20     {
21         template <typename Tag>
22         struct begin_impl;
23
24         template <>
25         struct begin_impl<mpl_sequence_tag>
26         {
27             template <typename Sequence>
28             struct apply 
29             {
30                 typedef typename mpl::begin<
31                     typename remove_const<Sequence>::type
32                 >::type iterator;
33                 typedef mpl_iterator<iterator> type;
34                 
35                 static type
36                 call(Sequence)
37                 {
38                     return type();
39                 }
40             };
41         };
42     }
43 }}
44
45 #endif