Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2009 Christopher Schmidt
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 
0009 #ifndef BOOST_FUSION_CONTAINER_MAP_DETAIL_END_IMPL_HPP
0010 #define BOOST_FUSION_CONTAINER_MAP_DETAIL_END_IMPL_HPP
0011 
0012 #include <boost/fusion/support/config.hpp>
0013 #include <boost/fusion/iterator/basic_iterator.hpp>
0014 
0015 namespace boost { namespace fusion { namespace extension
0016 {
0017     template <typename>
0018     struct end_impl;
0019 
0020     template <>
0021     struct end_impl<map_tag>
0022     {
0023         template <typename Seq>
0024         struct apply
0025         {
0026             typedef
0027                 basic_iterator<
0028                     map_iterator_tag
0029                   , typename Seq::category
0030                   , Seq
0031                   , Seq::size::value
0032                 >
0033             type;
0034 
0035             BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0036             static type
0037             call(Seq& seq)
0038             {
0039                 return type(seq,0);
0040             }
0041         };
0042     };
0043 }}}
0044 
0045 #endif