Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:07

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2005-2006 Dan Marsden
0004 
0005     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0006     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 ==============================================================================*/
0008 #if !defined(BOOST_FUSION_END_IMPL_31122005_1237)
0009 #define BOOST_FUSION_END_IMPL_31122005_1237
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
0013 #include <boost/mpl/end.hpp>
0014 #include <boost/type_traits/add_const.hpp>
0015 
0016 namespace boost { namespace fusion
0017 {
0018     struct mpl_sequence_tag;
0019 
0020     namespace extension
0021     {
0022         template <typename Tag>
0023         struct end_impl;
0024 
0025         template <>
0026         struct end_impl<mpl_sequence_tag>
0027         {
0028             template <typename Sequence>
0029             struct apply
0030             {
0031                 typedef typename mpl::end<
0032                     typename remove_const<Sequence>::type
0033                 >::type iterator;
0034                 typedef mpl_iterator<iterator> type;
0035                 
0036                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0037                 static type
0038                 call(Sequence)
0039                 {
0040                     return type();
0041                 }
0042             };
0043         };
0044     }
0045 }}
0046 
0047 #endif