os/ossrv/ossrv_pub/boost_apis/boost/mpl/placeholders.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
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_PLACEHOLDERS_HPP_INCLUDED
sl@0
     7
#define BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED
sl@0
     8
sl@0
     9
// Copyright Aleksey Gurtovoy 2001-2004
sl@0
    10
// Copyright Peter Dimov 2001-2003
sl@0
    11
//
sl@0
    12
// Distributed under the Boost Software License, Version 1.0. 
sl@0
    13
// (See accompanying file LICENSE_1_0.txt or copy at 
sl@0
    14
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    15
//
sl@0
    16
// See http://www.boost.org/libs/mpl for documentation.
sl@0
    17
sl@0
    18
// $Source: /cvsroot/boost/boost/boost/mpl/placeholders.hpp,v $
sl@0
    19
// $Date: 2004/09/16 14:08:46 $
sl@0
    20
// $Revision: 1.4 $
sl@0
    21
sl@0
    22
sl@0
    23
#if !defined(BOOST_MPL_PREPROCESSING_MODE)
sl@0
    24
#   include <boost/mpl/arg.hpp>
sl@0
    25
#   include <boost/mpl/aux_/adl_barrier.hpp>
sl@0
    26
sl@0
    27
#   if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE)
sl@0
    28
#       define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) \
sl@0
    29
        using ::BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::type; \
sl@0
    30
        /**/
sl@0
    31
#   else
sl@0
    32
#       define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) /**/
sl@0
    33
#   endif
sl@0
    34
sl@0
    35
#endif
sl@0
    36
sl@0
    37
#include <boost/mpl/aux_/config/use_preprocessed.hpp>
sl@0
    38
sl@0
    39
#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
sl@0
    40
 && !defined(BOOST_MPL_PREPROCESSING_MODE)
sl@0
    41
sl@0
    42
#   define BOOST_MPL_PREPROCESSED_HEADER placeholders.hpp
sl@0
    43
#   include <boost/mpl/aux_/include_preprocessed.hpp>
sl@0
    44
sl@0
    45
#else
sl@0
    46
sl@0
    47
#   include <boost/mpl/aux_/nttp_decl.hpp>
sl@0
    48
#   include <boost/mpl/limits/arity.hpp>
sl@0
    49
#   include <boost/preprocessor/iterate.hpp>
sl@0
    50
#   include <boost/preprocessor/cat.hpp>
sl@0
    51
sl@0
    52
// watch out for GNU gettext users, who #define _(x)
sl@0
    53
#if !defined(_) || defined(BOOST_MPL_CFG_NO_UNNAMED_PLACEHOLDER_SUPPORT)
sl@0
    54
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
sl@0
    55
typedef arg<-1> _;
sl@0
    56
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
sl@0
    57
sl@0
    58
namespace boost { namespace mpl { 
sl@0
    59
sl@0
    60
BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(_)
sl@0
    61
sl@0
    62
namespace placeholders {
sl@0
    63
using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::_;
sl@0
    64
}
sl@0
    65
sl@0
    66
}}
sl@0
    67
#endif
sl@0
    68
sl@0
    69
/// agurt, 17/mar/02: one more placeholder for the last 'apply#' 
sl@0
    70
/// specialization
sl@0
    71
#define BOOST_PP_ITERATION_PARAMS_1 \
sl@0
    72
    (3,(1, BOOST_MPL_LIMIT_METAFUNCTION_ARITY + 1, <boost/mpl/placeholders.hpp>))
sl@0
    73
#include BOOST_PP_ITERATE()
sl@0
    74
sl@0
    75
#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
sl@0
    76
#endif // BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED
sl@0
    77
sl@0
    78
///// iteration
sl@0
    79
sl@0
    80
#else
sl@0
    81
#define i_ BOOST_PP_FRAME_ITERATION(1)
sl@0
    82
sl@0
    83
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
sl@0
    84
sl@0
    85
typedef arg<i_> BOOST_PP_CAT(_,i_);
sl@0
    86
sl@0
    87
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
sl@0
    88
sl@0
    89
namespace boost { namespace mpl { 
sl@0
    90
sl@0
    91
BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(BOOST_PP_CAT(_,i_))
sl@0
    92
sl@0
    93
namespace placeholders {
sl@0
    94
using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::BOOST_PP_CAT(_,i_);
sl@0
    95
}
sl@0
    96
sl@0
    97
}}
sl@0
    98
sl@0
    99
#undef i_
sl@0
   100
#endif // BOOST_PP_IS_ITERATING