1
/*=============================================================================
2
Copyright (c) 2001-2006 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_07162005_0136)
8
#define FUSION_NEXT_IMPL_07162005_0136
10
#include <boost/fusion/iterator/next.hpp>
11
#include <boost/fusion/iterator/equal_to.hpp>
12
#include <boost/mpl/if.hpp>
14
namespace boost { namespace fusion
16
struct joint_view_iterator_tag;
18
template <typename First, typename Last, typename Concat>
19
struct joint_view_iterator;
23
template <typename Tag>
27
struct next_impl<joint_view_iterator_tag>
29
template <typename Iterator>
32
typedef typename Iterator::first_type first_type;
33
typedef typename Iterator::last_type last_type;
34
typedef typename Iterator::concat_type concat_type;
35
typedef typename result_of::next<first_type>::type next_type;
36
typedef result_of::equal_to<next_type, last_type> equal_to;
42
, joint_view_iterator<next_type, last_type, concat_type>
47
call(Iterator const& i, mpl::true_)
53
call(Iterator const& i, mpl::false_)
55
return type(fusion::next(i.first), i.concat);
59
call(Iterator const& i)
61
return call(i, equal_to());