1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/bind_fwd.hpp Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,99 @@
1.4 +
1.5 +#if !defined(BOOST_PP_IS_ITERATING)
1.6 +
1.7 +///// header body
1.8 +
1.9 +#ifndef BOOST_MPL_BIND_FWD_HPP_INCLUDED
1.10 +#define BOOST_MPL_BIND_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/bind_fwd.hpp,v $
1.21 +// $Date: 2004/09/02 15:40:41 $
1.22 +// $Revision: 1.2 $
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/bind.hpp>
1.29 +#include <boost/mpl/aux_/config/use_preprocessed.hpp>
1.30 +
1.31 +#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
1.32 + && !defined(BOOST_MPL_PREPROCESSING_MODE)
1.33 +
1.34 +# define BOOST_MPL_PREPROCESSED_HEADER bind_fwd.hpp
1.35 +# include <boost/mpl/aux_/include_preprocessed.hpp>
1.36 +
1.37 +#else
1.38 +
1.39 +# include <boost/mpl/limits/arity.hpp>
1.40 +# include <boost/mpl/aux_/preprocessor/params.hpp>
1.41 +# include <boost/mpl/aux_/preprocessor/default_params.hpp>
1.42 +# include <boost/mpl/aux_/config/dmc_ambiguous_ctps.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 +namespace boost { namespace mpl {
1.49 +
1.50 +// local macros, #undef-ined at the end of the header
1.51 +
1.52 +# if defined(BOOST_MPL_CFG_DMC_AMBIGUOUS_CTPS)
1.53 +# define AUX778076_DMC_PARAM() , int dummy_ = 0
1.54 +# else
1.55 +# define AUX778076_DMC_PARAM()
1.56 +# endif
1.57 +
1.58 +# define AUX778076_BIND_DEFAULT_PARAMS(param, value) \
1.59 + BOOST_MPL_PP_DEFAULT_PARAMS( \
1.60 + BOOST_MPL_LIMIT_METAFUNCTION_ARITY \
1.61 + , param \
1.62 + , value \
1.63 + ) \
1.64 + AUX778076_DMC_PARAM() \
1.65 + /**/
1.66 +
1.67 +# define AUX778076_BIND_N_PARAMS(n, param) \
1.68 + BOOST_PP_COMMA_IF(n) BOOST_MPL_PP_PARAMS(n, param) \
1.69 + AUX778076_DMC_PARAM() \
1.70 + /**/
1.71 +
1.72 +#if !defined(BOOST_MPL_CFG_NO_BIND_TEMPLATE)
1.73 +template<
1.74 + typename F, AUX778076_BIND_DEFAULT_PARAMS(typename T, na)
1.75 + >
1.76 +struct bind;
1.77 +#endif
1.78 +
1.79 +#define BOOST_PP_ITERATION_PARAMS_1 \
1.80 + (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, <boost/mpl/bind_fwd.hpp>))
1.81 +#include BOOST_PP_ITERATE()
1.82 +
1.83 +# undef AUX778076_BIND_N_PARAMS
1.84 +# undef AUX778076_BIND_DEFAULT_PARAMS
1.85 +# undef AUX778076_DMC_PARAM
1.86 +}}
1.87 +
1.88 +#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
1.89 +#endif // BOOST_MPL_BIND_FWD_HPP_INCLUDED
1.90 +
1.91 +///// iteration
1.92 +
1.93 +#else
1.94 +#define i_ BOOST_PP_FRAME_ITERATION(1)
1.95 +
1.96 +template<
1.97 + typename F AUX778076_BIND_N_PARAMS(i_, typename T)
1.98 + >
1.99 +struct BOOST_PP_CAT(bind,i_);
1.100 +
1.101 +#undef i_
1.102 +#endif // BOOST_PP_IS_ITERATING