]> git.sesse.net Git - casparcg/blob - dependencies/boost/boost/fusion/adapted/boost_array/detail/end_impl.hpp
Manually merged pull request #222
[casparcg] / dependencies / boost / boost / fusion / adapted / boost_array / detail / end_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_END_IMPL_27122005_1120)
9 #define BOOST_FUSION_END_IMPL_27122005_1120
10
11 #include <boost/fusion/adapted/boost_array/array_iterator.hpp>
12
13 namespace boost { namespace fusion {
14
15     struct boost_array_tag;
16
17     namespace extension
18     {
19         template <typename Tag>
20         struct end_impl;
21
22         template <>
23         struct end_impl<boost_array_tag>
24         {
25             template <typename Sequence>
26             struct apply 
27             {
28                 typedef array_iterator<Sequence, Sequence::static_size> type;
29     
30                 static type
31                 call(Sequence& v)
32                 {
33                     return type(v);
34                 }
35             };
36         };
37     }
38 }}
39
40 #endif