epoc32/include/stdapis/boost/bind/arg.hpp
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/stdapis/boost/bind/arg.hpp	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ b/epoc32/include/stdapis/boost/bind/arg.hpp	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -1,123 +1,36 @@
     1.4 +#ifndef BOOST_BIND_ARG_HPP_INCLUDED
     1.5 +#define BOOST_BIND_ARG_HPP_INCLUDED
     1.6  
     1.7 -// Copyright Peter Dimov 2001-2002
     1.8 -// Copyright Aleksey Gurtovoy 2001-2004
     1.9 +// MS compatible compilers support #pragma once
    1.10 +
    1.11 +#if defined(_MSC_VER) && (_MSC_VER >= 1020)
    1.12 +# pragma once
    1.13 +#endif
    1.14 +
    1.15  //
    1.16 -// Distributed under the Boost Software License, Version 1.0. 
    1.17 -// (See accompanying file LICENSE_1_0.txt or copy at 
    1.18 +//  bind/arg.hpp
    1.19 +//
    1.20 +//  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
    1.21 +//
    1.22 +// Distributed under the Boost Software License, Version 1.0. (See
    1.23 +// accompanying file LICENSE_1_0.txt or copy at
    1.24  // http://www.boost.org/LICENSE_1_0.txt)
    1.25  //
    1.26 +//  See http://www.boost.org/libs/bind/bind.html for documentation.
    1.27 +//
    1.28  
    1.29 -// Preprocessed version of "boost/mpl/arg.hpp" header
    1.30 -// -- DO NOT modify by hand!
    1.31 +namespace boost
    1.32 +{
    1.33  
    1.34 -BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
    1.35 -template<> struct arg< -1 >
    1.36 +template<int I> class arg
    1.37  {
    1.38 -    BOOST_STATIC_CONSTANT(int, value  = -1);
    1.39 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
    1.40 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
    1.41 -
    1.42 -    template<
    1.43 -          typename U1 = na, typename U2 = na, typename U3 = na
    1.44 -        , typename U4 = na, typename U5 = na
    1.45 -        >
    1.46 -    struct apply
    1.47 -    {
    1.48 -        typedef U1 type;
    1.49 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
    1.50 -    };
    1.51  };
    1.52  
    1.53 -template<> struct arg<1>
    1.54 +template<int I> bool operator==(arg<I> const &, arg<I> const &)
    1.55  {
    1.56 -    BOOST_STATIC_CONSTANT(int, value  = 1);
    1.57 -    typedef arg<2> next;
    1.58 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
    1.59 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
    1.60 +    return true;
    1.61 +}
    1.62  
    1.63 -    template<
    1.64 -          typename U1 = na, typename U2 = na, typename U3 = na
    1.65 -        , typename U4 = na, typename U5 = na
    1.66 -        >
    1.67 -    struct apply
    1.68 -    {
    1.69 -        typedef U1 type;
    1.70 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
    1.71 -    };
    1.72 -};
    1.73 +} // namespace boost
    1.74  
    1.75 -template<> struct arg<2>
    1.76 -{
    1.77 -    BOOST_STATIC_CONSTANT(int, value  = 2);
    1.78 -    typedef arg<3> next;
    1.79 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
    1.80 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
    1.81 -
    1.82 -    template<
    1.83 -          typename U1 = na, typename U2 = na, typename U3 = na
    1.84 -        , typename U4 = na, typename U5 = na
    1.85 -        >
    1.86 -    struct apply
    1.87 -    {
    1.88 -        typedef U2 type;
    1.89 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
    1.90 -    };
    1.91 -};
    1.92 -
    1.93 -template<> struct arg<3>
    1.94 -{
    1.95 -    BOOST_STATIC_CONSTANT(int, value  = 3);
    1.96 -    typedef arg<4> next;
    1.97 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
    1.98 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
    1.99 -
   1.100 -    template<
   1.101 -          typename U1 = na, typename U2 = na, typename U3 = na
   1.102 -        , typename U4 = na, typename U5 = na
   1.103 -        >
   1.104 -    struct apply
   1.105 -    {
   1.106 -        typedef U3 type;
   1.107 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
   1.108 -    };
   1.109 -};
   1.110 -
   1.111 -template<> struct arg<4>
   1.112 -{
   1.113 -    BOOST_STATIC_CONSTANT(int, value  = 4);
   1.114 -    typedef arg<5> next;
   1.115 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
   1.116 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
   1.117 -
   1.118 -    template<
   1.119 -          typename U1 = na, typename U2 = na, typename U3 = na
   1.120 -        , typename U4 = na, typename U5 = na
   1.121 -        >
   1.122 -    struct apply
   1.123 -    {
   1.124 -        typedef U4 type;
   1.125 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
   1.126 -    };
   1.127 -};
   1.128 -
   1.129 -template<> struct arg<5>
   1.130 -{
   1.131 -    BOOST_STATIC_CONSTANT(int, value  = 5);
   1.132 -    typedef arg<6> next;
   1.133 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, tag)
   1.134 -    BOOST_MPL_AUX_ARG_TYPEDEF(na, type)
   1.135 -
   1.136 -    template<
   1.137 -          typename U1 = na, typename U2 = na, typename U3 = na
   1.138 -        , typename U4 = na, typename U5 = na
   1.139 -        >
   1.140 -    struct apply
   1.141 -    {
   1.142 -        typedef U5 type;
   1.143 -        BOOST_MPL_AUX_ASSERT_NOT_NA(type);
   1.144 -    };
   1.145 -};
   1.146 -
   1.147 -BOOST_MPL_AUX_NONTYPE_ARITY_SPEC(1,int, arg)
   1.148 -
   1.149 -BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
   1.150 +#endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED