Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:10:13

0001 /*=============================================================================
0002     Copyright (c) 2009 Hartmut Kaiser
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 
0008 #if !defined(BOOST_FUSION_NVIEW_ADVANCE_IMPL_SEP_24_2009_0212PM)
0009 #define BOOST_FUSION_NVIEW_ADVANCE_IMPL_SEP_24_2009_0212PM
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/iterator/advance.hpp>
0013 
0014 namespace boost { namespace fusion
0015 {
0016     struct nview_iterator_tag;
0017 
0018     template <typename Sequence, typename Pos>
0019     struct nview_iterator;
0020 
0021     namespace extension
0022     {
0023         template<typename Tag>
0024         struct advance_impl;
0025 
0026         template<>
0027         struct advance_impl<nview_iterator_tag>
0028         {
0029             template<typename Iterator, typename Dist>
0030             struct apply
0031             {
0032                 typedef typename Iterator::first_type iterator_type;
0033                 typedef typename Iterator::sequence_type sequence_type;
0034 
0035                 typedef nview_iterator<sequence_type,
0036                     typename result_of::advance<iterator_type, Dist>::type> type;
0037 
0038                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0039                 static type
0040                 call(Iterator const& i)
0041                 {
0042                     return type(i.seq);
0043                 }
0044             };
0045         };
0046     }
0047 
0048 }}
0049 
0050 #endif