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_BEGIN_IMPL_SEP_23_2009_1036PM)
9 #define BOOST_FUSION_NVIEW_BEGIN_IMPL_SEP_23_2009_1036PM
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/sequence/intrinsic/begin.hpp>
14 namespace boost { namespace fusion
18 template <typename Sequence, typename Pos>
19 struct nview_iterator;
23 template<typename Tag>
27 struct begin_impl<nview_tag>
29 template<typename Sequence>
32 typedef typename Sequence::index_type index_type;
34 typedef nview_iterator<Sequence,
35 typename result_of::begin<index_type>::type> type;
37 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
38 static type call(Sequence& s)