1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
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(FUSION_POP_FRONT_09172005_1115)
8 #define FUSION_POP_FRONT_09172005_1115
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/view/iterator_range/iterator_range.hpp>
12 #include <boost/fusion/sequence/intrinsic/begin.hpp>
13 #include <boost/fusion/sequence/intrinsic/end.hpp>
14 #include <boost/fusion/iterator/next.hpp>
16 namespace boost
{ namespace fusion
20 template <typename Sequence
>
26 typename begin
<Sequence
>::type
28 , typename end
<Sequence
>::type
34 template <typename Sequence
>
35 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 inline typename
result_of::pop_front
<Sequence
const>::type
37 pop_front(Sequence
const& seq
)
39 typedef typename
result_of::pop_front
<Sequence
const>::type result
;
40 return result(fusion::next(fusion::begin(seq
)), fusion::end(seq
));