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 ==============================================================================*/
7 #if !defined(BOOST_FUSION_SEGMENTED_BEGIN_HPP_INCLUDED)
8 #define BOOST_FUSION_SEGMENTED_BEGIN_HPP_INCLUDED
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/sequence/intrinsic/detail/segmented_begin_impl.hpp>
12 #include <boost/fusion/iterator/segmented_iterator.hpp>
13 #include <boost/fusion/view/iterator_range.hpp>
14 #include <boost/fusion/sequence/intrinsic/begin.hpp>
15 #include <boost/fusion/sequence/intrinsic/end.hpp>
16 #include <boost/fusion/sequence/intrinsic/empty.hpp>
17 #include <boost/fusion/container/list/cons.hpp>
19 namespace boost { namespace fusion { namespace detail
21 //auto segmented_begin( seq )
23 // return make_segmented_iterator( segmented_begin_impl( seq, nil_ ) );
26 template <typename Sequence, typename Nil_ = fusion::nil_>
27 struct segmented_begin
31 typename segmented_begin_impl<Sequence, Nil_>::type
35 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 static type call(Sequence& seq)
39 segmented_begin_impl<Sequence, Nil_>::call(seq, Nil_()));