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