sl@0: sl@0: #if !defined(BOOST_PP_IS_ITERATING) sl@0: sl@0: ///// header body sl@0: sl@0: #ifndef BOOST_MPL_APPLY_FWD_HPP_INCLUDED sl@0: #define BOOST_MPL_APPLY_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/apply_fwd.hpp,v $ sl@0: // $Date: 2005/08/25 16:27:21 $ sl@0: // $Revision: 1.3 $ sl@0: sl@0: #if !defined(BOOST_MPL_PREPROCESSING_MODE) sl@0: # include sl@0: #endif sl@0: 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 apply_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: # include sl@0: sl@0: # include sl@0: # include sl@0: # include sl@0: sl@0: // agurt, 15/jan/02: top-level 'apply' template gives an ICE on MSVC sl@0: // (for known reasons) sl@0: #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) sl@0: # define BOOST_MPL_CFG_NO_APPLY_TEMPLATE sl@0: #endif sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: // local macro, #undef-ined at the end of the header sl@0: # define AUX778076_APPLY_DEF_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: /**/ sl@0: sl@0: # define AUX778076_APPLY_N_COMMA_PARAMS(n, param) \ sl@0: BOOST_PP_COMMA_IF(n) \ sl@0: BOOST_MPL_PP_PARAMS(n, param) \ sl@0: /**/ sl@0: sl@0: # if !defined(BOOST_MPL_CFG_NO_APPLY_TEMPLATE) sl@0: sl@0: #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) sl@0: // forward declaration sl@0: template< sl@0: typename F, AUX778076_APPLY_DEF_PARAMS(typename T, na) sl@0: > sl@0: struct apply; sl@0: #else sl@0: namespace aux { sl@0: template< BOOST_AUX_NTTP_DECL(int, arity_) > struct apply_chooser; sl@0: } sl@0: #endif sl@0: sl@0: # endif // BOOST_MPL_CFG_NO_APPLY_TEMPLATE 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: sl@0: # undef AUX778076_APPLY_N_COMMA_PARAMS sl@0: # undef AUX778076_APPLY_DEF_PARAMS sl@0: sl@0: }} sl@0: sl@0: #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS sl@0: #endif // BOOST_MPL_APPLY_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_APPLY_N_COMMA_PARAMS(i_, typename T) sl@0: > sl@0: struct BOOST_PP_CAT(apply,i_); sl@0: sl@0: #undef i_ sl@0: #endif // BOOST_PP_IS_ITERATING