sl@0: sl@0: #if !defined(BOOST_PP_IS_ITERATING) sl@0: sl@0: ///// header body sl@0: sl@0: #ifndef BOOST_MPL_BIND_FWD_HPP_INCLUDED sl@0: #define BOOST_MPL_BIND_FWD_HPP_INCLUDED sl@0: sl@0: // Copyright Aleksey Gurtovoy 2000-2004 sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. sl@0: // (See accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // See http://www.boost.org/libs/mpl for documentation. sl@0: sl@0: // $Source: /cvsroot/boost/boost/boost/mpl/bind_fwd.hpp,v $ sl@0: // $Date: 2004/09/02 15:40:41 $ sl@0: // $Revision: 1.2 $ sl@0: sl@0: #if !defined(BOOST_MPL_PREPROCESSING_MODE) sl@0: # include sl@0: #endif sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \ sl@0: && !defined(BOOST_MPL_PREPROCESSING_MODE) sl@0: sl@0: # define BOOST_MPL_PREPROCESSED_HEADER bind_fwd.hpp sl@0: # include sl@0: sl@0: #else sl@0: sl@0: # include sl@0: # include sl@0: # include sl@0: # include sl@0: sl@0: # include sl@0: # include sl@0: # include sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: // local macros, #undef-ined at the end of the header sl@0: sl@0: # if defined(BOOST_MPL_CFG_DMC_AMBIGUOUS_CTPS) sl@0: # define AUX778076_DMC_PARAM() , int dummy_ = 0 sl@0: # else sl@0: # define AUX778076_DMC_PARAM() sl@0: # endif sl@0: sl@0: # define AUX778076_BIND_DEFAULT_PARAMS(param, value) \ sl@0: BOOST_MPL_PP_DEFAULT_PARAMS( \ sl@0: BOOST_MPL_LIMIT_METAFUNCTION_ARITY \ sl@0: , param \ sl@0: , value \ sl@0: ) \ sl@0: AUX778076_DMC_PARAM() \ sl@0: /**/ sl@0: sl@0: # define AUX778076_BIND_N_PARAMS(n, param) \ sl@0: BOOST_PP_COMMA_IF(n) BOOST_MPL_PP_PARAMS(n, param) \ sl@0: AUX778076_DMC_PARAM() \ sl@0: /**/ sl@0: sl@0: #if !defined(BOOST_MPL_CFG_NO_BIND_TEMPLATE) sl@0: template< sl@0: typename F, AUX778076_BIND_DEFAULT_PARAMS(typename T, na) sl@0: > sl@0: struct bind; sl@0: #endif sl@0: sl@0: #define BOOST_PP_ITERATION_PARAMS_1 \ sl@0: (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, )) sl@0: #include BOOST_PP_ITERATE() sl@0: sl@0: # undef AUX778076_BIND_N_PARAMS sl@0: # undef AUX778076_BIND_DEFAULT_PARAMS sl@0: # undef AUX778076_DMC_PARAM sl@0: }} sl@0: sl@0: #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS sl@0: #endif // BOOST_MPL_BIND_FWD_HPP_INCLUDED sl@0: sl@0: ///// iteration sl@0: sl@0: #else sl@0: #define i_ BOOST_PP_FRAME_ITERATION(1) sl@0: sl@0: template< sl@0: typename F AUX778076_BIND_N_PARAMS(i_, typename T) sl@0: > sl@0: struct BOOST_PP_CAT(bind,i_); sl@0: sl@0: #undef i_ sl@0: #endif // BOOST_PP_IS_ITERATING