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/iterator/next.hpp>
11 #include <boost/fusion/iterator/prior.hpp>
13 namespace boost { namespace fusion
15 struct reverse_view_iterator_tag;
17 template <typename Iterator>
18 struct reverse_view_iterator;
23 struct next_impl<reverse_view_iterator_tag>
25 template <typename Iterator>
28 typedef typename Iterator::first_type first_type;
29 typedef typename prior_impl<typename first_type::fusion_tag>::
30 template apply<first_type>
33 typedef reverse_view_iterator<typename wrapped::type> type;
36 call(Iterator const& i)
38 return type(wrapped::call(i.first));