]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/sequence/intrinsic/detail/segmented_end.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / sequence / intrinsic / detail / segmented_end.hpp
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_END_HPP_INCLUDED)
8 #define BOOST_FUSION_SEGMENTED_END_HPP_INCLUDED
9
10 #include <boost/fusion/sequence/intrinsic/detail/segmented_end_impl.hpp>
11 #include <boost/fusion/iterator/segmented_iterator.hpp>
12 #include <boost/fusion/container/list/cons.hpp>
13
14 namespace boost { namespace fusion { namespace detail
15 {
16     //auto segmented_end( seq )
17     //{
18     //    return make_segmented_iterator( segmented_end_impl( seq ) );
19     //}
20
21     template <typename Sequence, typename Nil_ = fusion::nil_>
22     struct segmented_end
23     {
24         typedef
25             segmented_iterator<
26                 typename segmented_end_impl<Sequence, Nil_>::type
27             >
28         type;
29
30         static type call(Sequence & seq)
31         {
32             return type(
33                 segmented_end_impl<Sequence, Nil_>::call(seq, Nil_()));
34         }
35     };
36
37 }}}
38
39 #endif