1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_NEXT_IMPL_07202005_0856)
8 #define FUSION_NEXT_IMPL_07202005_0856
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/iterator/next.hpp>
12 #include <boost/fusion/iterator/prior.hpp>
14 namespace boost { namespace fusion
16 struct reverse_view_iterator_tag;
18 template <typename Iterator>
19 struct reverse_view_iterator;
24 struct next_impl<reverse_view_iterator_tag>
26 template <typename Iterator>
29 typedef typename Iterator::first_type first_type;
30 typedef typename prior_impl<typename first_type::fusion_tag>::
31 template apply<first_type>
34 typedef reverse_view_iterator<typename wrapped::type> type;
36 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38 call(Iterator const& i)
40 return type(wrapped::call(i.first));