1 /*=============================================================================
2 Copyright (c) 2009 Hartmut Kaiser
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_NVIEW_ADVANCE_IMPL_SEP_24_2009_0212PM)
9 #define BOOST_FUSION_NVIEW_ADVANCE_IMPL_SEP_24_2009_0212PM
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/iterator/advance.hpp>
14 namespace boost { namespace fusion
16 struct nview_iterator_tag;
18 template <typename Sequence, typename Pos>
19 struct nview_iterator;
23 template<typename Tag>
27 struct advance_impl<nview_iterator_tag>
29 template<typename Iterator, typename Dist>
32 typedef typename Iterator::first_type iterator_type;
33 typedef typename Iterator::sequence_type sequence_type;
35 typedef nview_iterator<sequence_type,
36 typename result_of::advance<iterator_type, Dist>::type> type;
38 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
40 call(Iterator const& i)