/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_POP_FRONT_09172005_1115) #define FUSION_POP_FRONT_09172005_1115 #include #include #include #include namespace boost { namespace fusion { namespace result_of { template struct pop_front { typedef iterator_range< typename next< typename begin::type >::type , typename end::type > type; }; } template inline typename result_of::pop_front::type pop_front(Sequence const& seq) { typedef typename result_of::pop_front::type result; return result(fusion::next(fusion::begin(seq)), fusion::end(seq)); } }} #endif