annotate DEPENDENCIES/generic/include/boost/mpl/bind_fwd.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1
Chris@16 2 #if !defined(BOOST_PP_IS_ITERATING)
Chris@16 3
Chris@16 4 ///// header body
Chris@16 5
Chris@16 6 #ifndef BOOST_MPL_BIND_FWD_HPP_INCLUDED
Chris@16 7 #define BOOST_MPL_BIND_FWD_HPP_INCLUDED
Chris@16 8
Chris@16 9 // Copyright Aleksey Gurtovoy 2000-2004
Chris@16 10 //
Chris@16 11 // Distributed under the Boost Software License, Version 1.0.
Chris@16 12 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 13 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 14 //
Chris@16 15 // See http://www.boost.org/libs/mpl for documentation.
Chris@16 16
Chris@101 17 // $Id$
Chris@101 18 // $Date$
Chris@101 19 // $Revision$
Chris@16 20
Chris@16 21 #if !defined(BOOST_MPL_PREPROCESSING_MODE)
Chris@16 22 # include <boost/mpl/aux_/na.hpp>
Chris@16 23 #endif
Chris@16 24
Chris@16 25 #include <boost/mpl/aux_/config/bind.hpp>
Chris@16 26 #include <boost/mpl/aux_/config/use_preprocessed.hpp>
Chris@16 27
Chris@16 28 #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
Chris@16 29 && !defined(BOOST_MPL_PREPROCESSING_MODE)
Chris@16 30
Chris@16 31 # define BOOST_MPL_PREPROCESSED_HEADER bind_fwd.hpp
Chris@16 32 # include <boost/mpl/aux_/include_preprocessed.hpp>
Chris@16 33
Chris@16 34 #else
Chris@16 35
Chris@16 36 # include <boost/mpl/limits/arity.hpp>
Chris@16 37 # include <boost/mpl/aux_/preprocessor/params.hpp>
Chris@16 38 # include <boost/mpl/aux_/preprocessor/default_params.hpp>
Chris@16 39 # include <boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp>
Chris@16 40
Chris@16 41 # include <boost/preprocessor/comma_if.hpp>
Chris@16 42 # include <boost/preprocessor/iterate.hpp>
Chris@16 43 # include <boost/preprocessor/cat.hpp>
Chris@16 44
Chris@16 45 namespace boost { namespace mpl {
Chris@16 46
Chris@16 47 // local macros, #undef-ined at the end of the header
Chris@16 48
Chris@16 49 # if defined(BOOST_MPL_CFG_DMC_AMBIGUOUS_CTPS)
Chris@16 50 # define AUX778076_DMC_PARAM() , int dummy_ = 0
Chris@16 51 # else
Chris@16 52 # define AUX778076_DMC_PARAM()
Chris@16 53 # endif
Chris@16 54
Chris@16 55 # define AUX778076_BIND_DEFAULT_PARAMS(param, value) \
Chris@16 56 BOOST_MPL_PP_DEFAULT_PARAMS( \
Chris@16 57 BOOST_MPL_LIMIT_METAFUNCTION_ARITY \
Chris@16 58 , param \
Chris@16 59 , value \
Chris@16 60 ) \
Chris@16 61 AUX778076_DMC_PARAM() \
Chris@16 62 /**/
Chris@16 63
Chris@16 64 # define AUX778076_BIND_N_PARAMS(n, param) \
Chris@16 65 BOOST_PP_COMMA_IF(n) BOOST_MPL_PP_PARAMS(n, param) \
Chris@16 66 AUX778076_DMC_PARAM() \
Chris@16 67 /**/
Chris@16 68
Chris@16 69 #if !defined(BOOST_MPL_CFG_NO_BIND_TEMPLATE)
Chris@16 70 template<
Chris@16 71 typename F, AUX778076_BIND_DEFAULT_PARAMS(typename T, na)
Chris@16 72 >
Chris@16 73 struct bind;
Chris@16 74 #endif
Chris@16 75
Chris@16 76 #define BOOST_PP_ITERATION_PARAMS_1 \
Chris@16 77 (3,(0, BOOST_MPL_LIMIT_METAFUNCTION_ARITY, <boost/mpl/bind_fwd.hpp>))
Chris@16 78 #include BOOST_PP_ITERATE()
Chris@16 79
Chris@16 80 # undef AUX778076_BIND_N_PARAMS
Chris@16 81 # undef AUX778076_BIND_DEFAULT_PARAMS
Chris@16 82 # undef AUX778076_DMC_PARAM
Chris@16 83 }}
Chris@16 84
Chris@16 85 #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
Chris@16 86 #endif // BOOST_MPL_BIND_FWD_HPP_INCLUDED
Chris@16 87
Chris@16 88 ///// iteration
Chris@16 89
Chris@16 90 #else
Chris@16 91 #define i_ BOOST_PP_FRAME_ITERATION(1)
Chris@16 92
Chris@16 93 template<
Chris@16 94 typename F AUX778076_BIND_N_PARAMS(i_, typename T)
Chris@16 95 >
Chris@16 96 struct BOOST_PP_CAT(bind,i_);
Chris@16 97
Chris@16 98 #undef i_
Chris@16 99 #endif // BOOST_PP_IS_ITERATING