1 /*=============================================================================
2 Copyright (c) 2001-2011 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/support/config.hpp>
12 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
13 #include <boost/mpl/end.hpp>
14 #include <boost/type_traits/add_const.hpp>
16 namespace boost { namespace fusion
18 struct mpl_sequence_tag;
22 template <typename Tag>
26 struct end_impl<mpl_sequence_tag>
28 template <typename Sequence>
31 typedef typename mpl::end<
32 typename remove_const<Sequence>::type
34 typedef mpl_iterator<iterator> type;
36 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED