/*============================================================================= Copyright (c) 2001-2006 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_PUSH_FRONT_07162005_0749) #define FUSION_PUSH_FRONT_07162005_0749 #include #include #include namespace boost { namespace fusion { namespace result_of { template struct push_front { typedef fusion::single_view::type> single_view; typedef joint_view type; }; } template inline typename result_of::push_front::type push_front(Sequence const& seq, T const& x) { typedef typename result_of::push_front push_front; typedef typename push_front::single_view single_view; typedef typename push_front::type result; single_view x_(x); return result(x_, seq); } }} #endif