Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:17

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_POP_FRONT_09172005_1115)
0008 #define FUSION_POP_FRONT_09172005_1115
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/view/iterator_range/iterator_range.hpp>
0012 #include <boost/fusion/sequence/intrinsic/begin.hpp>
0013 #include <boost/fusion/sequence/intrinsic/end.hpp>
0014 #include <boost/fusion/iterator/next.hpp>
0015 
0016 namespace boost { namespace fusion
0017 {
0018     namespace result_of
0019     {
0020         template <typename Sequence>
0021         struct pop_front
0022         {
0023             typedef
0024                 iterator_range<
0025                     typename next<
0026                         typename begin<Sequence>::type
0027                     >::type
0028                   , typename end<Sequence>::type
0029                 >
0030             type;
0031         };
0032     }
0033 
0034     template <typename Sequence>
0035     BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0036     inline typename result_of::pop_front<Sequence const>::type
0037     pop_front(Sequence const& seq)
0038     {
0039         typedef typename result_of::pop_front<Sequence const>::type result;
0040         return result(fusion::next(fusion::begin(seq)), fusion::end(seq));
0041     }
0042 }}
0043 
0044 #endif
0045