Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:33:20

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2005 Eric Niebler
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(FUSION_END_IMPL_07172005_0828)
0009 #define FUSION_END_IMPL_07172005_0828
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/mpl/if.hpp>
0013 #include <boost/type_traits/is_const.hpp>
0014 
0015 namespace boost { namespace fusion
0016 {
0017     struct nil_;
0018 
0019     struct cons_tag;
0020 
0021     template <typename Car, typename Cdr>
0022     struct cons;
0023 
0024     template <typename Cons>
0025     struct cons_iterator;
0026 
0027     namespace extension
0028     {
0029         template <typename Tag>
0030         struct end_impl;
0031 
0032         template <>
0033         struct end_impl<cons_tag>
0034         {
0035             template <typename Sequence>
0036             struct apply
0037             {
0038                 typedef cons_iterator<
0039                     typename mpl::if_<is_const<Sequence>, nil_ const, nil_>::type>
0040                 type;
0041 
0042                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0043                 static type
0044                 call(Sequence&)
0045                 {
0046                     return type();
0047                 }
0048             };
0049         };
0050     }
0051 }}
0052 
0053 #endif