epoc32/include/stdapis/boost/mpl/apply_fwd.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/mpl/apply_fwd.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/mpl/apply_fwd.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,3 +1,10 @@
     1.4 +
     1.5 +#if !defined(BOOST_PP_IS_ITERATING)
     1.6 +
     1.7 +///// header body
     1.8 +
     1.9 +#ifndef BOOST_MPL_APPLY_FWD_HPP_INCLUDED
    1.10 +#define BOOST_MPL_APPLY_FWD_HPP_INCLUDED
    1.11  
    1.12  // Copyright Aleksey Gurtovoy 2000-2004
    1.13  //
    1.14 @@ -5,48 +12,96 @@
    1.15  // (See accompanying file LICENSE_1_0.txt or copy at 
    1.16  // http://www.boost.org/LICENSE_1_0.txt)
    1.17  //
    1.18 +// See http://www.boost.org/libs/mpl for documentation.
    1.19  
    1.20 -// Preprocessed version of "boost/mpl/apply_fwd.hpp" header
    1.21 -// -- DO NOT modify by hand!
    1.22 +// $Source: /cvsroot/boost/boost/boost/mpl/apply_fwd.hpp,v $
    1.23 +// $Date: 2005/08/25 16:27:21 $
    1.24 +// $Revision: 1.3 $
    1.25 +
    1.26 +#if !defined(BOOST_MPL_PREPROCESSING_MODE)
    1.27 +#   include <boost/mpl/aux_/na.hpp>
    1.28 +#endif
    1.29 +
    1.30 +#include <boost/mpl/aux_/config/use_preprocessed.hpp>
    1.31 +
    1.32 +#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
    1.33 +    && !defined(BOOST_MPL_PREPROCESSING_MODE)
    1.34 +
    1.35 +#   define BOOST_MPL_PREPROCESSED_HEADER apply_fwd.hpp
    1.36 +#   include <boost/mpl/aux_/include_preprocessed.hpp>
    1.37 +
    1.38 +#else
    1.39 +
    1.40 +#   include <boost/mpl/limits/arity.hpp>
    1.41 +#   include <boost/mpl/aux_/preprocessor/params.hpp>
    1.42 +#   include <boost/mpl/aux_/preprocessor/default_params.hpp>
    1.43 +#   include <boost/mpl/aux_/config/ctps.hpp>
    1.44 +#   include <boost/mpl/aux_/nttp_decl.hpp>
    1.45 +
    1.46 +#   include <boost/preprocessor/comma_if.hpp>
    1.47 +#   include <boost/preprocessor/iterate.hpp>
    1.48 +#   include <boost/preprocessor/cat.hpp>
    1.49 +
    1.50 +// agurt, 15/jan/02: top-level 'apply' template gives an ICE on MSVC
    1.51 +// (for known reasons)
    1.52 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
    1.53 +#   define BOOST_MPL_CFG_NO_APPLY_TEMPLATE
    1.54 +#endif
    1.55  
    1.56  namespace boost { namespace mpl {
    1.57  
    1.58 +// local macro, #undef-ined at the end of the header
    1.59 +#   define AUX778076_APPLY_DEF_PARAMS(param, value) \
    1.60 +    BOOST_MPL_PP_DEFAULT_PARAMS( \
    1.61 +          BOOST_MPL_LIMIT_METAFUNCTION_ARITY \
    1.62 +        , param \
    1.63 +        , value \
    1.64 +        ) \
    1.65 +    /**/
    1.66 +
    1.67 +#   define AUX778076_APPLY_N_COMMA_PARAMS(n, param) \
    1.68 +    BOOST_PP_COMMA_IF(n) \
    1.69 +    BOOST_MPL_PP_PARAMS(n, param) \
    1.70 +    /**/
    1.71 +
    1.72 +#   if !defined(BOOST_MPL_CFG_NO_APPLY_TEMPLATE)
    1.73 +
    1.74 +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
    1.75 +// forward declaration
    1.76  template<
    1.77 -      typename F, typename T1 = na, typename T2 = na, typename T3 = na
    1.78 -    , typename T4 = na, typename T5 = na
    1.79 +      typename F, AUX778076_APPLY_DEF_PARAMS(typename T, na)
    1.80      >
    1.81  struct apply;
    1.82 +#else
    1.83 +namespace aux {
    1.84 +template< BOOST_AUX_NTTP_DECL(int, arity_) > struct apply_chooser;
    1.85 +}
    1.86 +#endif
    1.87  
    1.88 -template<
    1.89 -      typename F
    1.90 -    >
    1.91 -struct apply0;
    1.92 +#   endif // BOOST_MPL_CFG_NO_APPLY_TEMPLATE
    1.93  
    1.94 -template<
    1.95 -      typename F, typename T1
    1.96 -    >
    1.97 -struct apply1;
    1.98 +#define BOOST_PP_ITERATION_PARAMS_1 \
    1.99 +    (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, <boost/mpl/apply_fwd.hpp>))
   1.100 +#include BOOST_PP_ITERATE()
   1.101  
   1.102 -template<
   1.103 -      typename F, typename T1, typename T2
   1.104 -    >
   1.105 -struct apply2;
   1.106  
   1.107 -template<
   1.108 -      typename F, typename T1, typename T2, typename T3
   1.109 -    >
   1.110 -struct apply3;
   1.111 -
   1.112 -template<
   1.113 -      typename F, typename T1, typename T2, typename T3, typename T4
   1.114 -    >
   1.115 -struct apply4;
   1.116 -
   1.117 -template<
   1.118 -      typename F, typename T1, typename T2, typename T3, typename T4
   1.119 -    , typename T5
   1.120 -    >
   1.121 -struct apply5;
   1.122 +#   undef AUX778076_APPLY_N_COMMA_PARAMS
   1.123 +#   undef AUX778076_APPLY_DEF_PARAMS
   1.124  
   1.125  }}
   1.126  
   1.127 +#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
   1.128 +#endif // BOOST_MPL_APPLY_FWD_HPP_INCLUDED
   1.129 +
   1.130 +///// iteration
   1.131 +
   1.132 +#else
   1.133 +#define i_ BOOST_PP_FRAME_ITERATION(1)
   1.134 +
   1.135 +template<
   1.136 +      typename F AUX778076_APPLY_N_COMMA_PARAMS(i_, typename T)
   1.137 +    >
   1.138 +struct BOOST_PP_CAT(apply,i_);
   1.139 +
   1.140 +#undef i_
   1.141 +#endif // BOOST_PP_IS_ITERATING