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_END_HPP_INCLUDED)
8 #define BOOST_FUSION_SEGMENTED_END_HPP_INCLUDED
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/sequence/intrinsic/detail/segmented_end_impl.hpp>
12 #include <boost/fusion/iterator/segmented_iterator.hpp>
13 #include <boost/fusion/container/list/cons.hpp>
15 namespace boost { namespace fusion { namespace detail
17 //auto segmented_end( seq )
19 // return make_segmented_iterator( segmented_end_impl( seq ) );
22 template <typename Sequence, typename Nil_ = fusion::nil_>
27 typename segmented_end_impl<Sequence, Nil_>::type
31 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
32 static type call(Sequence & seq)
35 segmented_end_impl<Sequence, Nil_>::call(seq, Nil_()));