sl@0: sl@0: #if !defined(BOOST_PP_IS_ITERATING) sl@0: sl@0: ///// header body sl@0: sl@0: #ifndef BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED sl@0: #define BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED sl@0: sl@0: // Copyright Aleksey Gurtovoy 2001-2004 sl@0: // Copyright Peter Dimov 2001-2003 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/placeholders.hpp,v $ sl@0: // $Date: 2004/09/16 14:08:46 $ sl@0: // $Revision: 1.4 $ sl@0: sl@0: sl@0: #if !defined(BOOST_MPL_PREPROCESSING_MODE) sl@0: # include sl@0: # include sl@0: sl@0: # if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE) sl@0: # define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) \ sl@0: using ::BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::type; \ sl@0: /**/ sl@0: # else sl@0: # define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) /**/ sl@0: # endif sl@0: 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 placeholders.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: // watch out for GNU gettext users, who #define _(x) sl@0: #if !defined(_) || defined(BOOST_MPL_CFG_NO_UNNAMED_PLACEHOLDER_SUPPORT) sl@0: BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN sl@0: typedef arg<-1> _; sl@0: BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(_) sl@0: sl@0: namespace placeholders { sl@0: using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::_; sl@0: } sl@0: sl@0: }} sl@0: #endif sl@0: sl@0: /// agurt, 17/mar/02: one more placeholder for the last 'apply#' sl@0: /// specialization sl@0: #define BOOST_PP_ITERATION_PARAMS_1 \ sl@0: (3,(1, BOOST_MPL_LIMIT_METAFUNCTION_ARITY + 1, )) sl@0: #include BOOST_PP_ITERATE() sl@0: sl@0: #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS sl@0: #endif // BOOST_MPL_PLACEHOLDERS_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: BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN sl@0: sl@0: typedef arg BOOST_PP_CAT(_,i_); sl@0: sl@0: BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(BOOST_PP_CAT(_,i_)) sl@0: sl@0: namespace placeholders { sl@0: using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::BOOST_PP_CAT(_,i_); sl@0: } sl@0: sl@0: }} sl@0: sl@0: #undef i_ sl@0: #endif // BOOST_PP_IS_ITERATING