comparison DEPENDENCIES/generic/include/boost/fusion/sequence/intrinsic/detail/segmented_begin.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
3
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
9
10 #include <boost/fusion/sequence/intrinsic/detail/segmented_begin_impl.hpp>
11 #include <boost/fusion/iterator/segmented_iterator.hpp>
12 #include <boost/fusion/view/iterator_range.hpp>
13 #include <boost/fusion/sequence/intrinsic/begin.hpp>
14 #include <boost/fusion/sequence/intrinsic/end.hpp>
15 #include <boost/fusion/sequence/intrinsic/empty.hpp>
16 #include <boost/fusion/container/list/cons.hpp>
17
18 namespace boost { namespace fusion { namespace detail
19 {
20 //auto segmented_begin( seq )
21 //{
22 // return make_segmented_iterator( segmented_begin_impl( seq, nil_ ) );
23 //}
24
25 template <typename Sequence, typename Nil_ = fusion::nil_>
26 struct segmented_begin
27 {
28 typedef
29 segmented_iterator<
30 typename segmented_begin_impl<Sequence, Nil_>::type
31 >
32 type;
33
34 static type call(Sequence& seq)
35 {
36 return type(
37 segmented_begin_impl<Sequence, Nil_>::call(seq, Nil_()));
38 }
39 };
40
41 }}}
42
43 #endif