1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/apply_fwd.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,107 @@
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 +// Distributed under the Boost Software License, Version 1.0.
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 +// $Source: /cvsroot/boost/boost/boost/mpl/apply_fwd.hpp,v $
1.21 +// $Date: 2005/08/25 16:27:21 $
1.22 +// $Revision: 1.3 $
1.23 +
1.24 +#if !defined(BOOST_MPL_PREPROCESSING_MODE)
1.25 +# include <boost/mpl/aux_/na.hpp>
1.26 +#endif
1.27 +
1.28 +#include <boost/mpl/aux_/config/use_preprocessed.hpp>
1.29 +
1.30 +#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
1.31 + && !defined(BOOST_MPL_PREPROCESSING_MODE)
1.32 +
1.33 +# define BOOST_MPL_PREPROCESSED_HEADER apply_fwd.hpp
1.34 +# include <boost/mpl/aux_/include_preprocessed.hpp>
1.35 +
1.36 +#else
1.37 +
1.38 +# include <boost/mpl/limits/arity.hpp>
1.39 +# include <boost/mpl/aux_/preprocessor/params.hpp>
1.40 +# include <boost/mpl/aux_/preprocessor/default_params.hpp>
1.41 +# include <boost/mpl/aux_/config/ctps.hpp>
1.42 +# include <boost/mpl/aux_/nttp_decl.hpp>
1.43 +
1.44 +# include <boost/preprocessor/comma_if.hpp>
1.45 +# include <boost/preprocessor/iterate.hpp>
1.46 +# include <boost/preprocessor/cat.hpp>
1.47 +
1.48 +// agurt, 15/jan/02: top-level 'apply' template gives an ICE on MSVC
1.49 +// (for known reasons)
1.50 +#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1.51 +# define BOOST_MPL_CFG_NO_APPLY_TEMPLATE
1.52 +#endif
1.53 +
1.54 +namespace boost { namespace mpl {
1.55 +
1.56 +// local macro, #undef-ined at the end of the header
1.57 +# define AUX778076_APPLY_DEF_PARAMS(param, value) \
1.58 + BOOST_MPL_PP_DEFAULT_PARAMS( \
1.59 + BOOST_MPL_LIMIT_METAFUNCTION_ARITY \
1.60 + , param \
1.61 + , value \
1.62 + ) \
1.63 + /**/
1.64 +
1.65 +# define AUX778076_APPLY_N_COMMA_PARAMS(n, param) \
1.66 + BOOST_PP_COMMA_IF(n) \
1.67 + BOOST_MPL_PP_PARAMS(n, param) \
1.68 + /**/
1.69 +
1.70 +# if !defined(BOOST_MPL_CFG_NO_APPLY_TEMPLATE)
1.71 +
1.72 +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
1.73 +// forward declaration
1.74 +template<
1.75 + typename F, AUX778076_APPLY_DEF_PARAMS(typename T, na)
1.76 + >
1.77 +struct apply;
1.78 +#else
1.79 +namespace aux {
1.80 +template< BOOST_AUX_NTTP_DECL(int, arity_) > struct apply_chooser;
1.81 +}
1.82 +#endif
1.83 +
1.84 +# endif // BOOST_MPL_CFG_NO_APPLY_TEMPLATE
1.85 +
1.86 +#define BOOST_PP_ITERATION_PARAMS_1 \
1.87 + (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, <boost/mpl/apply_fwd.hpp>))
1.88 +#include BOOST_PP_ITERATE()
1.89 +
1.90 +
1.91 +# undef AUX778076_APPLY_N_COMMA_PARAMS
1.92 +# undef AUX778076_APPLY_DEF_PARAMS
1.93 +
1.94 +}}
1.95 +
1.96 +#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
1.97 +#endif // BOOST_MPL_APPLY_FWD_HPP_INCLUDED
1.98 +
1.99 +///// iteration
1.100 +
1.101 +#else
1.102 +#define i_ BOOST_PP_FRAME_ITERATION(1)
1.103 +
1.104 +template<
1.105 + typename F AUX778076_APPLY_N_COMMA_PARAMS(i_, typename T)
1.106 + >
1.107 +struct BOOST_PP_CAT(apply,i_);
1.108 +
1.109 +#undef i_
1.110 +#endif // BOOST_PP_IS_ITERATING