Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/fusion/view/reverse_view/detail/next_impl.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
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 #if !defined(FUSION_NEXT_IMPL_07202005_0856)
0008 #define FUSION_NEXT_IMPL_07202005_0856
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/iterator/next.hpp>
0012 #include <boost/fusion/iterator/prior.hpp>
0013 
0014 namespace boost { namespace fusion
0015 {
0016     struct reverse_view_iterator_tag;
0017 
0018     template <typename Iterator>
0019     struct reverse_view_iterator;
0020 
0021     namespace extension
0022     {
0023         template <>
0024         struct next_impl<reverse_view_iterator_tag>
0025         {
0026             template <typename Iterator>
0027             struct apply
0028             {
0029                 typedef typename Iterator::first_type first_type;
0030                 typedef typename prior_impl<typename first_type::fusion_tag>::
0031                     template apply<first_type>
0032                 wrapped;
0033     
0034                 typedef reverse_view_iterator<typename wrapped::type> type;
0035     
0036                 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0037                 static type
0038                 call(Iterator const& i)
0039                 {
0040                     return type(wrapped::call(i.first));
0041                 }
0042             };
0043         };
0044     }
0045 }}
0046 
0047 #endif
0048 
0049