1 /*=============================================================================
2 Copyright (c) 2007 Tobias Schwinger
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_REPETITIVE_VIEW_BEGIN_IMPL_HPP_INCLUDED)
9 #define BOOST_FUSION_REPETITIVE_VIEW_BEGIN_IMPL_HPP_INCLUDED
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/sequence/intrinsic/begin.hpp>
13 #include <boost/fusion/view/repetitive_view/repetitive_view_fwd.hpp>
15 namespace boost { namespace fusion
17 struct repetitive_view_tag;
19 template <typename Sequence, typename Pos>
20 struct repetitive_view_iterator;
24 template<typename Tag>
28 struct begin_impl<repetitive_view_tag>
30 template<typename View>
33 typedef typename View::sequence_type sequence_type;
35 typedef repetitive_view_iterator<sequence_type,
36 typename result_of::begin<sequence_type>::type > type;
38 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
39 static type call(View const& v)