1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
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 ==============================================================================*/
8 #if !defined(BOOST_FUSION_SINGLE_VIEW_ADVANCE_IMPL_JUL_07_2011_1348PM)
9 #define BOOST_FUSION_SINGLE_VIEW_ADVANCE_IMPL_JUL_07_2011_1348PM
11 #include <boost/mpl/plus.hpp>
13 namespace boost { namespace fusion
15 struct single_view_iterator_tag;
17 template <typename SingleView, typename Pos>
18 struct single_view_iterator;
22 template<typename Tag>
26 struct advance_impl<single_view_iterator_tag>
28 template<typename Iterator, typename Dist>
31 typedef single_view_iterator<
32 typename Iterator::single_view_type,
33 typename mpl::plus<typename Iterator::position, Dist>::type>
37 call(Iterator const& i)