1.1 --- a/epoc32/include/stdapis/boost/mpl/clear.hpp Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/stdapis/boost/mpl/clear.hpp Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,6 +1,6 @@
1.4
1.5 -#ifndef BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED
1.6 -#define BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED
1.7 +#ifndef BOOST_MPL_CLEAR_HPP_INCLUDED
1.8 +#define BOOST_MPL_CLEAR_HPP_INCLUDED
1.9
1.10 // Copyright Aleksey Gurtovoy 2000-2004
1.11 //
1.12 @@ -10,46 +10,30 @@
1.13 //
1.14 // See http://www.boost.org/libs/mpl for documentation.
1.15
1.16 -// $Source: /cvsroot/boost/boost/boost/mpl/vector/aux_/clear.hpp,v $
1.17 -// $Date: 2004/09/02 15:41:19 $
1.18 +// $Source: /cvsroot/boost/boost/boost/mpl/clear.hpp,v $
1.19 +// $Date: 2004/09/02 15:40:41 $
1.20 // $Revision: 1.4 $
1.21
1.22 #include <boost/mpl/clear_fwd.hpp>
1.23 -#include <boost/mpl/vector/aux_/vector0.hpp>
1.24 -#include <boost/mpl/vector/aux_/tag.hpp>
1.25 -#include <boost/mpl/aux_/config/typeof.hpp>
1.26 -#include <boost/mpl/aux_/config/ctps.hpp>
1.27 +#include <boost/mpl/aux_/clear_impl.hpp>
1.28 +#include <boost/mpl/sequence_tag.hpp>
1.29 +#include <boost/mpl/aux_/na_spec.hpp>
1.30 +#include <boost/mpl/aux_/lambda_support.hpp>
1.31
1.32 namespace boost { namespace mpl {
1.33
1.34 -#if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
1.35 -
1.36 -template<>
1.37 -struct clear_impl< aux::vector_tag >
1.38 +template<
1.39 + typename BOOST_MPL_AUX_NA_PARAM(Sequence)
1.40 + >
1.41 +struct clear
1.42 + : clear_impl< typename sequence_tag<Sequence>::type >
1.43 + ::template apply< Sequence >
1.44 {
1.45 - template< typename Vector > struct apply
1.46 - {
1.47 - typedef vector0<> type;
1.48 - };
1.49 + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,clear,(Sequence))
1.50 };
1.51
1.52 -#else
1.53 -
1.54 -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
1.55 -
1.56 -template< long N >
1.57 -struct clear_impl< aux::vector_tag<N> >
1.58 -{
1.59 - template< typename Vector > struct apply
1.60 - {
1.61 - typedef vector0<> type;
1.62 - };
1.63 -};
1.64 -
1.65 -#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
1.66 -
1.67 -#endif // BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES
1.68 +BOOST_MPL_AUX_NA_SPEC(1, clear)
1.69
1.70 }}
1.71
1.72 -#endif // BOOST_MPL_VECTOR_AUX_CLEAR_HPP_INCLUDED
1.73 +#endif // BOOST_MPL_CLEAR_HPP_INCLUDED