williamr@2: williamr@2: #ifndef BOOST_MPL_AUX_PUSH_FRONT_IMPL_HPP_INCLUDED williamr@2: #define BOOST_MPL_AUX_PUSH_FRONT_IMPL_HPP_INCLUDED williamr@2: williamr@2: // Copyright Aleksey Gurtovoy 2000-2004 williamr@2: // williamr@2: // Distributed under the Boost Software License, Version 1.0. williamr@2: // (See accompanying file LICENSE_1_0.txt or copy at williamr@2: // http://www.boost.org/LICENSE_1_0.txt) williamr@2: // williamr@2: // See http://www.boost.org/libs/mpl for documentation. williamr@2: williamr@2: // $Source: /cvsroot/boost/boost/boost/mpl/aux_/push_front_impl.hpp,v $ williamr@2: // $Date: 2004/09/02 15:40:44 $ williamr@2: // $Revision: 1.4 $ williamr@2: williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: namespace boost { namespace mpl { williamr@2: williamr@2: // agurt 05/feb/04: no default implementation; the stub definition is needed williamr@2: // to enable the default 'has_push_front' implementation below williamr@2: williamr@2: template< typename Tag > williamr@2: struct push_front_impl williamr@2: { williamr@2: template< typename Sequence, typename T > struct apply {}; williamr@2: }; williamr@2: williamr@2: template< typename Tag > williamr@2: struct has_push_front_impl williamr@2: { williamr@2: template< typename Seq > struct apply williamr@2: #if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING) williamr@2: : aux::has_type< push_front > williamr@2: { williamr@2: #else williamr@2: { williamr@2: typedef aux::has_type< push_front > type; williamr@2: BOOST_STATIC_CONSTANT(bool, value = williamr@2: (aux::has_type< push_front >::value) williamr@2: ); williamr@2: #endif williamr@2: }; williamr@2: }; williamr@2: williamr@2: BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(2, push_front_impl) williamr@2: BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(1, has_push_front_impl) williamr@2: williamr@2: }} williamr@2: williamr@2: #endif // BOOST_MPL_AUX_PUSH_FRONT_IMPL_HPP_INCLUDED