epoc32/include/stdapis/boost/bind/placeholders.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
       
     1 #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
       
     2 #define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
     1 
     3 
     2 #if !defined(BOOST_PP_IS_ITERATING)
     4 // MS compatible compilers support #pragma once
     3 
     5 
     4 ///// header body
     6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
       
     7 # pragma once
       
     8 #endif
     5 
     9 
     6 #ifndef BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED
       
     7 #define BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED
       
     8 
       
     9 // Copyright Aleksey Gurtovoy 2001-2004
       
    10 // Copyright Peter Dimov 2001-2003
       
    11 //
    10 //
    12 // Distributed under the Boost Software License, Version 1.0. 
    11 //  bind/placeholders.hpp - _N definitions
    13 // (See accompanying file LICENSE_1_0.txt or copy at 
    12 //
       
    13 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
       
    14 //
       
    15 // Distributed under the Boost Software License, Version 1.0. (See
       
    16 // accompanying file LICENSE_1_0.txt or copy at
    14 // http://www.boost.org/LICENSE_1_0.txt)
    17 // http://www.boost.org/LICENSE_1_0.txt)
    15 //
    18 //
    16 // See http://www.boost.org/libs/mpl for documentation.
    19 //  See http://www.boost.org/libs/bind/bind.html for documentation.
       
    20 //
    17 
    21 
    18 // $Source: /cvsroot/boost/boost/boost/mpl/placeholders.hpp,v $
    22 #include <boost/bind/arg.hpp>
    19 // $Date: 2004/09/16 14:08:46 $
    23 #include <boost/config.hpp>
    20 // $Revision: 1.4 $
       
    21 
    24 
       
    25 namespace
       
    26 {
    22 
    27 
    23 #if !defined(BOOST_MPL_PREPROCESSING_MODE)
    28 #if defined(__BORLANDC__) || defined(__GNUC__)
    24 #   include <boost/mpl/arg.hpp>
       
    25 #   include <boost/mpl/aux_/adl_barrier.hpp>
       
    26 
    29 
    27 #   if !defined(BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE)
    30 static inline boost::arg<1> _1() { return boost::arg<1>(); }
    28 #       define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) \
    31 static inline boost::arg<2> _2() { return boost::arg<2>(); }
    29         using ::BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::type; \
    32 static inline boost::arg<3> _3() { return boost::arg<3>(); }
    30         /**/
    33 static inline boost::arg<4> _4() { return boost::arg<4>(); }
    31 #   else
    34 static inline boost::arg<5> _5() { return boost::arg<5>(); }
    32 #       define BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(type) /**/
    35 static inline boost::arg<6> _6() { return boost::arg<6>(); }
    33 #   endif
    36 static inline boost::arg<7> _7() { return boost::arg<7>(); }
       
    37 static inline boost::arg<8> _8() { return boost::arg<8>(); }
       
    38 static inline boost::arg<9> _9() { return boost::arg<9>(); }
       
    39 
       
    40 #elif defined(BOOST_MSVC) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) || defined(__MWERKS__)
       
    41 
       
    42 static boost::arg<1> _1;
       
    43 static boost::arg<2> _2;
       
    44 static boost::arg<3> _3;
       
    45 static boost::arg<4> _4;
       
    46 static boost::arg<5> _5;
       
    47 static boost::arg<6> _6;
       
    48 static boost::arg<7> _7;
       
    49 static boost::arg<8> _8;
       
    50 static boost::arg<9> _9;
       
    51 
       
    52 #else
       
    53 
       
    54 boost::arg<1> _1;
       
    55 boost::arg<2> _2;
       
    56 boost::arg<3> _3;
       
    57 boost::arg<4> _4;
       
    58 boost::arg<5> _5;
       
    59 boost::arg<6> _6;
       
    60 boost::arg<7> _7;
       
    61 boost::arg<8> _8;
       
    62 boost::arg<9> _9;
    34 
    63 
    35 #endif
    64 #endif
    36 
    65 
    37 #include <boost/mpl/aux_/config/use_preprocessed.hpp>
    66 } // unnamed namespace
    38 
    67 
    39 #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
    68 #endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
    40  && !defined(BOOST_MPL_PREPROCESSING_MODE)
       
    41 
       
    42 #   define BOOST_MPL_PREPROCESSED_HEADER placeholders.hpp
       
    43 #   include <boost/mpl/aux_/include_preprocessed.hpp>
       
    44 
       
    45 #else
       
    46 
       
    47 #   include <boost/mpl/aux_/nttp_decl.hpp>
       
    48 #   include <boost/mpl/limits/arity.hpp>
       
    49 #   include <boost/preprocessor/iterate.hpp>
       
    50 #   include <boost/preprocessor/cat.hpp>
       
    51 
       
    52 // watch out for GNU gettext users, who #define _(x)
       
    53 #if !defined(_) || defined(BOOST_MPL_CFG_NO_UNNAMED_PLACEHOLDER_SUPPORT)
       
    54 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
       
    55 typedef arg<-1> _;
       
    56 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
       
    57 
       
    58 namespace boost { namespace mpl { 
       
    59 
       
    60 BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(_)
       
    61 
       
    62 namespace placeholders {
       
    63 using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::_;
       
    64 }
       
    65 
       
    66 }}
       
    67 #endif
       
    68 
       
    69 /// agurt, 17/mar/02: one more placeholder for the last 'apply#' 
       
    70 /// specialization
       
    71 #define BOOST_PP_ITERATION_PARAMS_1 \
       
    72     (3,(1, BOOST_MPL_LIMIT_METAFUNCTION_ARITY + 1, <boost/mpl/placeholders.hpp>))
       
    73 #include BOOST_PP_ITERATE()
       
    74 
       
    75 #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
       
    76 #endif // BOOST_MPL_PLACEHOLDERS_HPP_INCLUDED
       
    77 
       
    78 ///// iteration
       
    79 
       
    80 #else
       
    81 #define i_ BOOST_PP_FRAME_ITERATION(1)
       
    82 
       
    83 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
       
    84 
       
    85 typedef arg<i_> BOOST_PP_CAT(_,i_);
       
    86 
       
    87 BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
       
    88 
       
    89 namespace boost { namespace mpl { 
       
    90 
       
    91 BOOST_MPL_AUX_ARG_ADL_BARRIER_DECL(BOOST_PP_CAT(_,i_))
       
    92 
       
    93 namespace placeholders {
       
    94 using BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE::BOOST_PP_CAT(_,i_);
       
    95 }
       
    96 
       
    97 }}
       
    98 
       
    99 #undef i_
       
   100 #endif // BOOST_PP_IS_ITERATING