Release 1.39.0
[boost.git] / Boost_1_39_0 / boost / fusion / adapted / mpl / detail / end_impl.hpp
blobe34669566a89ab784d09560ef80556791d7d2f87
1 /*=============================================================================
2 Copyright (c) 2001-2006 Joel de Guzman
3 Copyright (c) 2005-2006 Dan Marsden
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_31122005_1237)
9 #define BOOST_FUSION_END_IMPL_31122005_1237
11 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
12 #include <boost/mpl/end.hpp>
13 #include <boost/type_traits/add_const.hpp>
15 namespace boost { namespace fusion
17 struct mpl_sequence_tag;
19 namespace extension
21 template <typename Tag>
22 struct end_impl;
24 template <>
25 struct end_impl<mpl_sequence_tag>
27 template <typename Sequence>
28 struct apply
30 typedef typename mpl::end<
31 typename remove_const<Sequence>::type
32 >::type iterator;
33 typedef mpl_iterator<iterator> type;
35 static type
36 call(Sequence)
38 return type();
45 #endif