os/ossrv/ossrv_pub/boost_apis/boost/bind.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
#ifndef BOOST_BIND_HPP_INCLUDED
sl@0
     2
#define BOOST_BIND_HPP_INCLUDED
sl@0
     3
sl@0
     4
// MS compatible compilers support #pragma once
sl@0
     5
sl@0
     6
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
     7
# pragma once
sl@0
     8
#endif
sl@0
     9
sl@0
    10
//
sl@0
    11
//  bind.hpp - binds function objects to arguments
sl@0
    12
//
sl@0
    13
//  Copyright (c) 2001-2004 Peter Dimov and Multi Media Ltd.
sl@0
    14
//  Copyright (c) 2001 David Abrahams
sl@0
    15
//  Copyright (c) 2005 Peter Dimov
sl@0
    16
//
sl@0
    17
// Distributed under the Boost Software License, Version 1.0. (See
sl@0
    18
// accompanying file LICENSE_1_0.txt or copy at
sl@0
    19
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
    20
//
sl@0
    21
//  See http://www.boost.org/libs/bind/bind.html for documentation.
sl@0
    22
//
sl@0
    23
sl@0
    24
#include <boost/config.hpp>
sl@0
    25
#include <boost/ref.hpp>
sl@0
    26
#include <boost/mem_fn.hpp>
sl@0
    27
#include <boost/type.hpp>
sl@0
    28
#include <boost/bind/arg.hpp>
sl@0
    29
#include <boost/detail/workaround.hpp>
sl@0
    30
#include <boost/visit_each.hpp>
sl@0
    31
sl@0
    32
// Borland-specific bug, visit_each() silently fails to produce code
sl@0
    33
sl@0
    34
#if defined(__BORLANDC__)
sl@0
    35
#  define BOOST_BIND_VISIT_EACH boost::visit_each
sl@0
    36
#else
sl@0
    37
#  define BOOST_BIND_VISIT_EACH visit_each
sl@0
    38
#endif
sl@0
    39
sl@0
    40
#include <boost/bind/storage.hpp>
sl@0
    41
sl@0
    42
#ifdef BOOST_MSVC
sl@0
    43
# pragma warning(push)
sl@0
    44
# pragma warning(disable: 4512) // assignment operator could not be generated
sl@0
    45
#endif
sl@0
    46
sl@0
    47
namespace boost
sl@0
    48
{
sl@0
    49
sl@0
    50
namespace _bi // implementation details
sl@0
    51
{
sl@0
    52
sl@0
    53
// result_traits
sl@0
    54
sl@0
    55
template<class R, class F> struct result_traits
sl@0
    56
{
sl@0
    57
    typedef R type;
sl@0
    58
};
sl@0
    59
sl@0
    60
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
sl@0
    61
sl@0
    62
struct unspecified {};
sl@0
    63
sl@0
    64
template<class F> struct result_traits<unspecified, F>
sl@0
    65
{
sl@0
    66
    typedef typename F::result_type type;
sl@0
    67
};
sl@0
    68
sl@0
    69
template<class F> struct result_traits< unspecified, reference_wrapper<F> >
sl@0
    70
{
sl@0
    71
    typedef typename F::result_type type;
sl@0
    72
};
sl@0
    73
sl@0
    74
#endif
sl@0
    75
sl@0
    76
// ref_compare
sl@0
    77
sl@0
    78
template<class T> bool ref_compare( T const & a, T const & b, long )
sl@0
    79
{
sl@0
    80
    return a == b;
sl@0
    81
}
sl@0
    82
sl@0
    83
template<int I> bool ref_compare( arg<I> const &, arg<I> const &, int )
sl@0
    84
{
sl@0
    85
    return true;
sl@0
    86
}
sl@0
    87
sl@0
    88
template<int I> bool ref_compare( arg<I> (*) (), arg<I> (*) (), int )
sl@0
    89
{
sl@0
    90
    return true;
sl@0
    91
}
sl@0
    92
sl@0
    93
template<class T> bool ref_compare( reference_wrapper<T> const & a, reference_wrapper<T> const & b, int )
sl@0
    94
{
sl@0
    95
    return a.get_pointer() == b.get_pointer();
sl@0
    96
}
sl@0
    97
sl@0
    98
// bind_t forward declaration for listN
sl@0
    99
sl@0
   100
template<class R, class F, class L> class bind_t;
sl@0
   101
sl@0
   102
// value
sl@0
   103
sl@0
   104
template<class T> class value
sl@0
   105
{
sl@0
   106
public:
sl@0
   107
sl@0
   108
    value(T const & t): t_(t) {}
sl@0
   109
sl@0
   110
    T & get() { return t_; }
sl@0
   111
    T const & get() const { return t_; }
sl@0
   112
sl@0
   113
    bool operator==(value const & rhs) const
sl@0
   114
    {
sl@0
   115
        return t_ == rhs.t_;
sl@0
   116
    }
sl@0
   117
sl@0
   118
private:
sl@0
   119
sl@0
   120
    T t_;
sl@0
   121
};
sl@0
   122
sl@0
   123
// type
sl@0
   124
sl@0
   125
template<class T> class type {};
sl@0
   126
sl@0
   127
// unwrap
sl@0
   128
sl@0
   129
template<class F> struct unwrapper
sl@0
   130
{
sl@0
   131
    static inline F & unwrap( F & f, long )
sl@0
   132
    {
sl@0
   133
        return f;
sl@0
   134
    }
sl@0
   135
sl@0
   136
    template<class F2> static inline F2 & unwrap( reference_wrapper<F2> rf, int )
sl@0
   137
    {
sl@0
   138
        return rf.get();
sl@0
   139
    }
sl@0
   140
sl@0
   141
    template<class R, class T> static inline _mfi::dm<R, T> unwrap( R T::* pm, int )
sl@0
   142
    {
sl@0
   143
        return _mfi::dm<R, T>( pm );
sl@0
   144
    }
sl@0
   145
};
sl@0
   146
sl@0
   147
// listN
sl@0
   148
sl@0
   149
class list0
sl@0
   150
{
sl@0
   151
public:
sl@0
   152
sl@0
   153
    list0() {}
sl@0
   154
sl@0
   155
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   156
sl@0
   157
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   158
sl@0
   159
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   160
sl@0
   161
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   162
sl@0
   163
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   164
sl@0
   165
    template<class R, class F, class A> R operator()(type<R>, F & f, A &, long)
sl@0
   166
    {
sl@0
   167
        return unwrapper<F>::unwrap(f, 0)();
sl@0
   168
    }
sl@0
   169
sl@0
   170
    template<class R, class F, class A> R operator()(type<R>, F const & f, A &, long) const
sl@0
   171
    {
sl@0
   172
        return unwrapper<F const>::unwrap(f, 0)();
sl@0
   173
    }
sl@0
   174
sl@0
   175
    template<class F, class A> void operator()(type<void>, F & f, A &, int)
sl@0
   176
    {
sl@0
   177
        unwrapper<F>::unwrap(f, 0)();
sl@0
   178
    }
sl@0
   179
sl@0
   180
    template<class F, class A> void operator()(type<void>, F const & f, A &, int) const
sl@0
   181
    {
sl@0
   182
        unwrapper<F const>::unwrap(f, 0)();
sl@0
   183
    }
sl@0
   184
sl@0
   185
    template<class V> void accept(V &) const
sl@0
   186
    {
sl@0
   187
    }
sl@0
   188
sl@0
   189
    bool operator==(list0 const &) const
sl@0
   190
    {
sl@0
   191
        return true;
sl@0
   192
    }
sl@0
   193
};
sl@0
   194
sl@0
   195
template< class A1 > class list1: private storage1< A1 >
sl@0
   196
{
sl@0
   197
private:
sl@0
   198
sl@0
   199
    typedef storage1< A1 > base_type;
sl@0
   200
sl@0
   201
public:
sl@0
   202
sl@0
   203
    explicit list1( A1 a1 ): base_type( a1 ) {}
sl@0
   204
sl@0
   205
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   206
sl@0
   207
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   208
sl@0
   209
    template<class T> T & operator[] ( _bi::value<T> & v ) const { return v.get(); }
sl@0
   210
sl@0
   211
    template<class T> T const & operator[] ( _bi::value<T> const & v ) const { return v.get(); }
sl@0
   212
sl@0
   213
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   214
sl@0
   215
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   216
sl@0
   217
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   218
sl@0
   219
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   220
    {
sl@0
   221
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_]);
sl@0
   222
    }
sl@0
   223
sl@0
   224
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   225
    {
sl@0
   226
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_]);
sl@0
   227
    }
sl@0
   228
sl@0
   229
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   230
    {
sl@0
   231
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_]);
sl@0
   232
    }
sl@0
   233
sl@0
   234
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   235
    {
sl@0
   236
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_]);
sl@0
   237
    }
sl@0
   238
sl@0
   239
    template<class V> void accept(V & v) const
sl@0
   240
    {
sl@0
   241
        base_type::accept(v);
sl@0
   242
    }
sl@0
   243
sl@0
   244
    bool operator==(list1 const & rhs) const
sl@0
   245
    {
sl@0
   246
        return ref_compare(base_type::a1_, rhs.a1_, 0);
sl@0
   247
    }
sl@0
   248
};
sl@0
   249
sl@0
   250
template< class A1, class A2 > class list2: private storage2< A1, A2 >
sl@0
   251
{
sl@0
   252
private:
sl@0
   253
sl@0
   254
    typedef storage2< A1, A2 > base_type;
sl@0
   255
sl@0
   256
public:
sl@0
   257
sl@0
   258
    list2( A1 a1, A2 a2 ): base_type( a1, a2 ) {}
sl@0
   259
sl@0
   260
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   261
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   262
sl@0
   263
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   264
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   265
sl@0
   266
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   267
sl@0
   268
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   269
sl@0
   270
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   271
sl@0
   272
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   273
sl@0
   274
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   275
sl@0
   276
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   277
    {
sl@0
   278
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
sl@0
   279
    }
sl@0
   280
sl@0
   281
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   282
    {
sl@0
   283
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
sl@0
   284
    }
sl@0
   285
sl@0
   286
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   287
    {
sl@0
   288
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
sl@0
   289
    }
sl@0
   290
sl@0
   291
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   292
    {
sl@0
   293
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
sl@0
   294
    }
sl@0
   295
sl@0
   296
    template<class V> void accept(V & v) const
sl@0
   297
    {
sl@0
   298
        base_type::accept(v);
sl@0
   299
    }
sl@0
   300
sl@0
   301
    bool operator==(list2 const & rhs) const
sl@0
   302
    {
sl@0
   303
        return ref_compare(base_type::a1_, rhs.a1_, 0) && ref_compare(base_type::a2_, rhs.a2_, 0);
sl@0
   304
    }
sl@0
   305
};
sl@0
   306
sl@0
   307
template< class A1, class A2, class A3 > class list3: private storage3< A1, A2, A3 >
sl@0
   308
{
sl@0
   309
private:
sl@0
   310
sl@0
   311
    typedef storage3< A1, A2, A3 > base_type;
sl@0
   312
sl@0
   313
public:
sl@0
   314
sl@0
   315
    list3( A1 a1, A2 a2, A3 a3 ): base_type( a1, a2, a3 ) {}
sl@0
   316
sl@0
   317
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   318
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   319
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   320
sl@0
   321
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   322
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   323
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   324
sl@0
   325
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   326
sl@0
   327
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   328
sl@0
   329
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   330
sl@0
   331
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   332
sl@0
   333
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   334
sl@0
   335
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   336
    {
sl@0
   337
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]);
sl@0
   338
    }
sl@0
   339
sl@0
   340
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   341
    {
sl@0
   342
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]);
sl@0
   343
    }
sl@0
   344
sl@0
   345
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   346
    {
sl@0
   347
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]);
sl@0
   348
    }
sl@0
   349
sl@0
   350
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   351
    {
sl@0
   352
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_]);
sl@0
   353
    }
sl@0
   354
sl@0
   355
    template<class V> void accept(V & v) const
sl@0
   356
    {
sl@0
   357
        base_type::accept(v);
sl@0
   358
    }
sl@0
   359
sl@0
   360
    bool operator==(list3 const & rhs) const
sl@0
   361
    {
sl@0
   362
        return
sl@0
   363
            
sl@0
   364
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   365
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   366
            ref_compare( base_type::a3_, rhs.a3_, 0 );
sl@0
   367
    }
sl@0
   368
};
sl@0
   369
sl@0
   370
template< class A1, class A2, class A3, class A4 > class list4: private storage4< A1, A2, A3, A4 >
sl@0
   371
{
sl@0
   372
private:
sl@0
   373
sl@0
   374
    typedef storage4< A1, A2, A3, A4 > base_type;
sl@0
   375
sl@0
   376
public:
sl@0
   377
sl@0
   378
    list4( A1 a1, A2 a2, A3 a3, A4 a4 ): base_type( a1, a2, a3, a4 ) {}
sl@0
   379
sl@0
   380
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   381
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   382
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   383
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   384
sl@0
   385
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   386
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   387
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   388
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   389
sl@0
   390
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   391
sl@0
   392
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   393
sl@0
   394
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   395
sl@0
   396
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   397
sl@0
   398
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   399
sl@0
   400
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   401
    {
sl@0
   402
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]);
sl@0
   403
    }
sl@0
   404
sl@0
   405
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   406
    {
sl@0
   407
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]);
sl@0
   408
    }
sl@0
   409
sl@0
   410
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   411
    {
sl@0
   412
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]);
sl@0
   413
    }
sl@0
   414
sl@0
   415
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   416
    {
sl@0
   417
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_]);
sl@0
   418
    }
sl@0
   419
sl@0
   420
    template<class V> void accept(V & v) const
sl@0
   421
    {
sl@0
   422
        base_type::accept(v);
sl@0
   423
    }
sl@0
   424
sl@0
   425
    bool operator==(list4 const & rhs) const
sl@0
   426
    {
sl@0
   427
        return
sl@0
   428
sl@0
   429
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   430
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   431
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   432
            ref_compare( base_type::a4_, rhs.a4_, 0 );
sl@0
   433
    }
sl@0
   434
};
sl@0
   435
sl@0
   436
template< class A1, class A2, class A3, class A4, class A5 > class list5: private storage5< A1, A2, A3, A4, A5 >
sl@0
   437
{
sl@0
   438
private:
sl@0
   439
sl@0
   440
    typedef storage5< A1, A2, A3, A4, A5 > base_type;
sl@0
   441
sl@0
   442
public:
sl@0
   443
sl@0
   444
    list5( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5 ): base_type( a1, a2, a3, a4, a5 ) {}
sl@0
   445
sl@0
   446
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   447
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   448
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   449
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   450
    A5 operator[] (boost::arg<5>) const { return base_type::a5_; }
sl@0
   451
sl@0
   452
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   453
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   454
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   455
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   456
    A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; }
sl@0
   457
sl@0
   458
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   459
sl@0
   460
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   461
sl@0
   462
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   463
sl@0
   464
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   465
sl@0
   466
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   467
sl@0
   468
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   469
    {
sl@0
   470
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]);
sl@0
   471
    }
sl@0
   472
sl@0
   473
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   474
    {
sl@0
   475
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]);
sl@0
   476
    }
sl@0
   477
sl@0
   478
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   479
    {
sl@0
   480
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]);
sl@0
   481
    }
sl@0
   482
sl@0
   483
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   484
    {
sl@0
   485
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_]);
sl@0
   486
    }
sl@0
   487
sl@0
   488
    template<class V> void accept(V & v) const
sl@0
   489
    {
sl@0
   490
        base_type::accept(v);
sl@0
   491
    }
sl@0
   492
sl@0
   493
    bool operator==(list5 const & rhs) const
sl@0
   494
    {
sl@0
   495
        return
sl@0
   496
sl@0
   497
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   498
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   499
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   500
            ref_compare( base_type::a4_, rhs.a4_, 0 ) &&
sl@0
   501
            ref_compare( base_type::a5_, rhs.a5_, 0 );
sl@0
   502
    }
sl@0
   503
};
sl@0
   504
sl@0
   505
template<class A1, class A2, class A3, class A4, class A5, class A6> class list6: private storage6< A1, A2, A3, A4, A5, A6 >
sl@0
   506
{
sl@0
   507
private:
sl@0
   508
sl@0
   509
    typedef storage6< A1, A2, A3, A4, A5, A6 > base_type;
sl@0
   510
sl@0
   511
public:
sl@0
   512
sl@0
   513
    list6( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6 ): base_type( a1, a2, a3, a4, a5, a6 ) {}
sl@0
   514
sl@0
   515
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   516
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   517
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   518
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   519
    A5 operator[] (boost::arg<5>) const { return base_type::a5_; }
sl@0
   520
    A6 operator[] (boost::arg<6>) const { return base_type::a6_; }
sl@0
   521
sl@0
   522
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   523
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   524
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   525
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   526
    A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; }
sl@0
   527
    A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; }
sl@0
   528
sl@0
   529
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   530
sl@0
   531
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   532
sl@0
   533
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   534
sl@0
   535
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   536
sl@0
   537
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   538
sl@0
   539
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   540
    {
sl@0
   541
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]);
sl@0
   542
    }
sl@0
   543
sl@0
   544
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   545
    {
sl@0
   546
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]);
sl@0
   547
    }
sl@0
   548
sl@0
   549
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   550
    {
sl@0
   551
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]);
sl@0
   552
    }
sl@0
   553
sl@0
   554
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   555
    {
sl@0
   556
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_]);
sl@0
   557
    }
sl@0
   558
sl@0
   559
    template<class V> void accept(V & v) const
sl@0
   560
    {
sl@0
   561
        base_type::accept(v);
sl@0
   562
    }
sl@0
   563
sl@0
   564
    bool operator==(list6 const & rhs) const
sl@0
   565
    {
sl@0
   566
        return
sl@0
   567
sl@0
   568
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   569
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   570
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   571
            ref_compare( base_type::a4_, rhs.a4_, 0 ) &&
sl@0
   572
            ref_compare( base_type::a5_, rhs.a5_, 0 ) &&
sl@0
   573
            ref_compare( base_type::a6_, rhs.a6_, 0 );
sl@0
   574
    }
sl@0
   575
};
sl@0
   576
sl@0
   577
template<class A1, class A2, class A3, class A4, class A5, class A6, class A7> class list7: private storage7< A1, A2, A3, A4, A5, A6, A7 >
sl@0
   578
{
sl@0
   579
private:
sl@0
   580
sl@0
   581
    typedef storage7< A1, A2, A3, A4, A5, A6, A7 > base_type;
sl@0
   582
sl@0
   583
public:
sl@0
   584
sl@0
   585
    list7( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7 ): base_type( a1, a2, a3, a4, a5, a6, a7 ) {}
sl@0
   586
sl@0
   587
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   588
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   589
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   590
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   591
    A5 operator[] (boost::arg<5>) const { return base_type::a5_; }
sl@0
   592
    A6 operator[] (boost::arg<6>) const { return base_type::a6_; }
sl@0
   593
    A7 operator[] (boost::arg<7>) const { return base_type::a7_; }
sl@0
   594
sl@0
   595
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   596
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   597
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   598
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   599
    A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; }
sl@0
   600
    A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; }
sl@0
   601
    A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; }
sl@0
   602
sl@0
   603
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   604
sl@0
   605
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   606
sl@0
   607
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   608
sl@0
   609
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   610
sl@0
   611
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   612
sl@0
   613
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   614
    {
sl@0
   615
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]);
sl@0
   616
    }
sl@0
   617
sl@0
   618
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   619
    {
sl@0
   620
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]);
sl@0
   621
    }
sl@0
   622
sl@0
   623
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   624
    {
sl@0
   625
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]);
sl@0
   626
    }
sl@0
   627
sl@0
   628
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   629
    {
sl@0
   630
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_]);
sl@0
   631
    }
sl@0
   632
sl@0
   633
    template<class V> void accept(V & v) const
sl@0
   634
    {
sl@0
   635
        base_type::accept(v);
sl@0
   636
    }
sl@0
   637
sl@0
   638
    bool operator==(list7 const & rhs) const
sl@0
   639
    {
sl@0
   640
        return
sl@0
   641
sl@0
   642
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   643
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   644
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   645
            ref_compare( base_type::a4_, rhs.a4_, 0 ) &&
sl@0
   646
            ref_compare( base_type::a5_, rhs.a5_, 0 ) &&
sl@0
   647
            ref_compare( base_type::a6_, rhs.a6_, 0 ) &&
sl@0
   648
            ref_compare( base_type::a7_, rhs.a7_, 0 );
sl@0
   649
    }
sl@0
   650
};
sl@0
   651
sl@0
   652
template< class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8 > class list8: private storage8< A1, A2, A3, A4, A5, A6, A7, A8 >
sl@0
   653
{
sl@0
   654
private:
sl@0
   655
sl@0
   656
    typedef storage8< A1, A2, A3, A4, A5, A6, A7, A8 > base_type;
sl@0
   657
sl@0
   658
public:
sl@0
   659
sl@0
   660
    list8( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8 ): base_type( a1, a2, a3, a4, a5, a6, a7, a8 ) {}
sl@0
   661
sl@0
   662
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   663
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   664
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   665
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   666
    A5 operator[] (boost::arg<5>) const { return base_type::a5_; }
sl@0
   667
    A6 operator[] (boost::arg<6>) const { return base_type::a6_; }
sl@0
   668
    A7 operator[] (boost::arg<7>) const { return base_type::a7_; }
sl@0
   669
    A8 operator[] (boost::arg<8>) const { return base_type::a8_; }
sl@0
   670
sl@0
   671
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   672
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   673
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   674
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   675
    A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; }
sl@0
   676
    A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; }
sl@0
   677
    A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; }
sl@0
   678
    A8 operator[] (boost::arg<8> (*) ()) const { return base_type::a8_; }
sl@0
   679
sl@0
   680
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   681
sl@0
   682
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   683
sl@0
   684
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   685
sl@0
   686
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   687
sl@0
   688
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   689
sl@0
   690
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   691
    {
sl@0
   692
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]);
sl@0
   693
    }
sl@0
   694
sl@0
   695
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   696
    {
sl@0
   697
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]);
sl@0
   698
    }
sl@0
   699
sl@0
   700
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   701
    {
sl@0
   702
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]);
sl@0
   703
    }
sl@0
   704
sl@0
   705
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   706
    {
sl@0
   707
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_]);
sl@0
   708
    }
sl@0
   709
sl@0
   710
    template<class V> void accept(V & v) const
sl@0
   711
    {
sl@0
   712
        base_type::accept(v);
sl@0
   713
    }
sl@0
   714
sl@0
   715
    bool operator==(list8 const & rhs) const
sl@0
   716
    {
sl@0
   717
        return
sl@0
   718
            
sl@0
   719
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   720
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   721
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   722
            ref_compare( base_type::a4_, rhs.a4_, 0 ) &&
sl@0
   723
            ref_compare( base_type::a5_, rhs.a5_, 0 ) &&
sl@0
   724
            ref_compare( base_type::a6_, rhs.a6_, 0 ) &&
sl@0
   725
            ref_compare( base_type::a7_, rhs.a7_, 0 ) &&
sl@0
   726
            ref_compare( base_type::a8_, rhs.a8_, 0 );
sl@0
   727
    }
sl@0
   728
};
sl@0
   729
sl@0
   730
template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9> class list9: private storage9< A1, A2, A3, A4, A5, A6, A7, A8, A9 >
sl@0
   731
{
sl@0
   732
private:
sl@0
   733
sl@0
   734
    typedef storage9< A1, A2, A3, A4, A5, A6, A7, A8, A9 > base_type;
sl@0
   735
sl@0
   736
public:
sl@0
   737
sl@0
   738
    list9( A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9 ): base_type( a1, a2, a3, a4, a5, a6, a7, a8, a9 ) {}
sl@0
   739
sl@0
   740
    A1 operator[] (boost::arg<1>) const { return base_type::a1_; }
sl@0
   741
    A2 operator[] (boost::arg<2>) const { return base_type::a2_; }
sl@0
   742
    A3 operator[] (boost::arg<3>) const { return base_type::a3_; }
sl@0
   743
    A4 operator[] (boost::arg<4>) const { return base_type::a4_; }
sl@0
   744
    A5 operator[] (boost::arg<5>) const { return base_type::a5_; }
sl@0
   745
    A6 operator[] (boost::arg<6>) const { return base_type::a6_; }
sl@0
   746
    A7 operator[] (boost::arg<7>) const { return base_type::a7_; }
sl@0
   747
    A8 operator[] (boost::arg<8>) const { return base_type::a8_; }
sl@0
   748
    A9 operator[] (boost::arg<9>) const { return base_type::a9_; }
sl@0
   749
sl@0
   750
    A1 operator[] (boost::arg<1> (*) ()) const { return base_type::a1_; }
sl@0
   751
    A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; }
sl@0
   752
    A3 operator[] (boost::arg<3> (*) ()) const { return base_type::a3_; }
sl@0
   753
    A4 operator[] (boost::arg<4> (*) ()) const { return base_type::a4_; }
sl@0
   754
    A5 operator[] (boost::arg<5> (*) ()) const { return base_type::a5_; }
sl@0
   755
    A6 operator[] (boost::arg<6> (*) ()) const { return base_type::a6_; }
sl@0
   756
    A7 operator[] (boost::arg<7> (*) ()) const { return base_type::a7_; }
sl@0
   757
    A8 operator[] (boost::arg<8> (*) ()) const { return base_type::a8_; }
sl@0
   758
    A9 operator[] (boost::arg<9> (*) ()) const { return base_type::a9_; }
sl@0
   759
sl@0
   760
    template<class T> T & operator[] (_bi::value<T> & v) const { return v.get(); }
sl@0
   761
sl@0
   762
    template<class T> T const & operator[] (_bi::value<T> const & v) const { return v.get(); }
sl@0
   763
sl@0
   764
    template<class T> T & operator[] (reference_wrapper<T> const & v) const { return v.get(); }
sl@0
   765
sl@0
   766
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> & b) const { return b.eval(*this); }
sl@0
   767
sl@0
   768
    template<class R, class F, class L> typename result_traits<R, F>::type operator[] (bind_t<R, F, L> const & b) const { return b.eval(*this); }
sl@0
   769
sl@0
   770
    template<class R, class F, class A> R operator()(type<R>, F & f, A & a, long)
sl@0
   771
    {
sl@0
   772
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]);
sl@0
   773
    }
sl@0
   774
sl@0
   775
    template<class R, class F, class A> R operator()(type<R>, F const & f, A & a, long) const
sl@0
   776
    {
sl@0
   777
        return unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]);
sl@0
   778
    }
sl@0
   779
sl@0
   780
    template<class F, class A> void operator()(type<void>, F & f, A & a, int)
sl@0
   781
    {
sl@0
   782
        unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]);
sl@0
   783
    }
sl@0
   784
sl@0
   785
    template<class F, class A> void operator()(type<void>, F const & f, A & a, int) const
sl@0
   786
    {
sl@0
   787
        unwrapper<F const>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_], a[base_type::a3_], a[base_type::a4_], a[base_type::a5_], a[base_type::a6_], a[base_type::a7_], a[base_type::a8_], a[base_type::a9_]);
sl@0
   788
    }
sl@0
   789
sl@0
   790
    template<class V> void accept(V & v) const
sl@0
   791
    {
sl@0
   792
        base_type::accept(v);
sl@0
   793
    }
sl@0
   794
sl@0
   795
    bool operator==(list9 const & rhs) const
sl@0
   796
    {
sl@0
   797
        return
sl@0
   798
sl@0
   799
            ref_compare( base_type::a1_, rhs.a1_, 0 ) &&
sl@0
   800
            ref_compare( base_type::a2_, rhs.a2_, 0 ) &&
sl@0
   801
            ref_compare( base_type::a3_, rhs.a3_, 0 ) &&
sl@0
   802
            ref_compare( base_type::a4_, rhs.a4_, 0 ) &&
sl@0
   803
            ref_compare( base_type::a5_, rhs.a5_, 0 ) &&
sl@0
   804
            ref_compare( base_type::a6_, rhs.a6_, 0 ) &&
sl@0
   805
            ref_compare( base_type::a7_, rhs.a7_, 0 ) &&
sl@0
   806
            ref_compare( base_type::a8_, rhs.a8_, 0 ) &&
sl@0
   807
            ref_compare( base_type::a9_, rhs.a9_, 0 );
sl@0
   808
    }
sl@0
   809
};
sl@0
   810
sl@0
   811
// bind_t
sl@0
   812
sl@0
   813
#ifndef BOOST_NO_VOID_RETURNS
sl@0
   814
sl@0
   815
template<class R, class F, class L> class bind_t
sl@0
   816
{
sl@0
   817
public:
sl@0
   818
sl@0
   819
    typedef bind_t this_type;
sl@0
   820
sl@0
   821
    bind_t(F f, L const & l): f_(f), l_(l) {}
sl@0
   822
sl@0
   823
#define BOOST_BIND_RETURN return
sl@0
   824
#include <boost/bind/bind_template.hpp>
sl@0
   825
#undef BOOST_BIND_RETURN
sl@0
   826
sl@0
   827
};
sl@0
   828
sl@0
   829
#else
sl@0
   830
sl@0
   831
template<class R> struct bind_t_generator
sl@0
   832
{
sl@0
   833
sl@0
   834
template<class F, class L> class implementation
sl@0
   835
{
sl@0
   836
public:
sl@0
   837
sl@0
   838
    typedef implementation this_type;
sl@0
   839
sl@0
   840
    implementation(F f, L const & l): f_(f), l_(l) {}
sl@0
   841
sl@0
   842
#define BOOST_BIND_RETURN return
sl@0
   843
#include <boost/bind/bind_template.hpp>
sl@0
   844
#undef BOOST_BIND_RETURN
sl@0
   845
sl@0
   846
};
sl@0
   847
sl@0
   848
};
sl@0
   849
sl@0
   850
template<> struct bind_t_generator<void>
sl@0
   851
{
sl@0
   852
sl@0
   853
template<class F, class L> class implementation
sl@0
   854
{
sl@0
   855
private:
sl@0
   856
sl@0
   857
    typedef void R;
sl@0
   858
sl@0
   859
public:
sl@0
   860
sl@0
   861
    typedef implementation this_type;
sl@0
   862
sl@0
   863
    implementation(F f, L const & l): f_(f), l_(l) {}
sl@0
   864
sl@0
   865
#define BOOST_BIND_RETURN
sl@0
   866
#include <boost/bind/bind_template.hpp>
sl@0
   867
#undef BOOST_BIND_RETURN
sl@0
   868
sl@0
   869
};
sl@0
   870
sl@0
   871
};
sl@0
   872
sl@0
   873
template<class R2, class F, class L> class bind_t: public bind_t_generator<R2>::BOOST_NESTED_TEMPLATE implementation<F, L>
sl@0
   874
{
sl@0
   875
public:
sl@0
   876
sl@0
   877
    bind_t(F f, L const & l): bind_t_generator<R2>::BOOST_NESTED_TEMPLATE implementation<F, L>(f, l) {}
sl@0
   878
sl@0
   879
};
sl@0
   880
sl@0
   881
#endif
sl@0
   882
sl@0
   883
// function_equal
sl@0
   884
sl@0
   885
#ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
sl@0
   886
sl@0
   887
// put overloads in _bi, rely on ADL
sl@0
   888
sl@0
   889
# ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
sl@0
   890
sl@0
   891
template<class R, class F, class L> bool function_equal( bind_t<R, F, L> const & a, bind_t<R, F, L> const & b )
sl@0
   892
{
sl@0
   893
    return a.compare(b);
sl@0
   894
}
sl@0
   895
sl@0
   896
# else
sl@0
   897
sl@0
   898
template<class R, class F, class L> bool function_equal_impl( bind_t<R, F, L> const & a, bind_t<R, F, L> const & b, int )
sl@0
   899
{
sl@0
   900
    return a.compare(b);
sl@0
   901
}
sl@0
   902
sl@0
   903
# endif // #ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
sl@0
   904
sl@0
   905
#else // BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
sl@0
   906
sl@0
   907
// put overloads in boost
sl@0
   908
sl@0
   909
} // namespace _bi
sl@0
   910
sl@0
   911
# ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
sl@0
   912
sl@0
   913
template<class R, class F, class L> bool function_equal( _bi::bind_t<R, F, L> const & a, _bi::bind_t<R, F, L> const & b )
sl@0
   914
{
sl@0
   915
    return a.compare(b);
sl@0
   916
}
sl@0
   917
sl@0
   918
# else
sl@0
   919
sl@0
   920
template<class R, class F, class L> bool function_equal_impl( _bi::bind_t<R, F, L> const & a, _bi::bind_t<R, F, L> const & b, int )
sl@0
   921
{
sl@0
   922
    return a.compare(b);
sl@0
   923
}
sl@0
   924
sl@0
   925
# endif // #ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
sl@0
   926
sl@0
   927
namespace _bi
sl@0
   928
{
sl@0
   929
sl@0
   930
#endif // BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
sl@0
   931
sl@0
   932
// add_value
sl@0
   933
sl@0
   934
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) || (__SUNPRO_CC >= 0x530)
sl@0
   935
sl@0
   936
template<class T> struct add_value
sl@0
   937
{
sl@0
   938
    typedef _bi::value<T> type;
sl@0
   939
};
sl@0
   940
sl@0
   941
template<class T> struct add_value< value<T> >
sl@0
   942
{
sl@0
   943
    typedef _bi::value<T> type;
sl@0
   944
};
sl@0
   945
sl@0
   946
template<class T> struct add_value< reference_wrapper<T> >
sl@0
   947
{
sl@0
   948
    typedef reference_wrapper<T> type;
sl@0
   949
};
sl@0
   950
sl@0
   951
template<int I> struct add_value< arg<I> >
sl@0
   952
{
sl@0
   953
    typedef boost::arg<I> type;
sl@0
   954
};
sl@0
   955
sl@0
   956
template<int I> struct add_value< arg<I> (*) () >
sl@0
   957
{
sl@0
   958
    typedef boost::arg<I> (*type) ();
sl@0
   959
};
sl@0
   960
sl@0
   961
template<class R, class F, class L> struct add_value< bind_t<R, F, L> >
sl@0
   962
{
sl@0
   963
    typedef bind_t<R, F, L> type;
sl@0
   964
};
sl@0
   965
sl@0
   966
#else
sl@0
   967
sl@0
   968
template<int I> struct _avt_0;
sl@0
   969
sl@0
   970
template<> struct _avt_0<1>
sl@0
   971
{
sl@0
   972
    template<class T> struct inner
sl@0
   973
    {
sl@0
   974
        typedef T type;
sl@0
   975
    };
sl@0
   976
};
sl@0
   977
sl@0
   978
template<> struct _avt_0<2>
sl@0
   979
{
sl@0
   980
    template<class T> struct inner
sl@0
   981
    {
sl@0
   982
        typedef value<T> type;
sl@0
   983
    };
sl@0
   984
};
sl@0
   985
sl@0
   986
typedef char (&_avt_r1) [1];
sl@0
   987
typedef char (&_avt_r2) [2];
sl@0
   988
sl@0
   989
template<class T> _avt_r1 _avt_f(value<T>);
sl@0
   990
template<class T> _avt_r1 _avt_f(reference_wrapper<T>);
sl@0
   991
template<int I> _avt_r1 _avt_f(arg<I>);
sl@0
   992
template<int I> _avt_r1 _avt_f(arg<I> (*) ());
sl@0
   993
template<class R, class F, class L> _avt_r1 _avt_f(bind_t<R, F, L>);
sl@0
   994
sl@0
   995
_avt_r2 _avt_f(...);
sl@0
   996
sl@0
   997
template<class T> struct add_value
sl@0
   998
{
sl@0
   999
    static T t();
sl@0
  1000
    typedef typename _avt_0<sizeof(_avt_f(t()))>::template inner<T>::type type;
sl@0
  1001
};
sl@0
  1002
sl@0
  1003
#endif
sl@0
  1004
sl@0
  1005
// list_av_N
sl@0
  1006
sl@0
  1007
template<class A1> struct list_av_1
sl@0
  1008
{
sl@0
  1009
    typedef typename add_value<A1>::type B1;
sl@0
  1010
    typedef list1<B1> type;
sl@0
  1011
};
sl@0
  1012
sl@0
  1013
template<class A1, class A2> struct list_av_2
sl@0
  1014
{
sl@0
  1015
    typedef typename add_value<A1>::type B1;
sl@0
  1016
    typedef typename add_value<A2>::type B2;
sl@0
  1017
    typedef list2<B1, B2> type;
sl@0
  1018
};
sl@0
  1019
sl@0
  1020
template<class A1, class A2, class A3> struct list_av_3
sl@0
  1021
{
sl@0
  1022
    typedef typename add_value<A1>::type B1;
sl@0
  1023
    typedef typename add_value<A2>::type B2;
sl@0
  1024
    typedef typename add_value<A3>::type B3;
sl@0
  1025
    typedef list3<B1, B2, B3> type;
sl@0
  1026
};
sl@0
  1027
sl@0
  1028
template<class A1, class A2, class A3, class A4> struct list_av_4
sl@0
  1029
{
sl@0
  1030
    typedef typename add_value<A1>::type B1;
sl@0
  1031
    typedef typename add_value<A2>::type B2;
sl@0
  1032
    typedef typename add_value<A3>::type B3;
sl@0
  1033
    typedef typename add_value<A4>::type B4;
sl@0
  1034
    typedef list4<B1, B2, B3, B4> type;
sl@0
  1035
};
sl@0
  1036
sl@0
  1037
template<class A1, class A2, class A3, class A4, class A5> struct list_av_5
sl@0
  1038
{
sl@0
  1039
    typedef typename add_value<A1>::type B1;
sl@0
  1040
    typedef typename add_value<A2>::type B2;
sl@0
  1041
    typedef typename add_value<A3>::type B3;
sl@0
  1042
    typedef typename add_value<A4>::type B4;
sl@0
  1043
    typedef typename add_value<A5>::type B5;
sl@0
  1044
    typedef list5<B1, B2, B3, B4, B5> type;
sl@0
  1045
};
sl@0
  1046
sl@0
  1047
template<class A1, class A2, class A3, class A4, class A5, class A6> struct list_av_6
sl@0
  1048
{
sl@0
  1049
    typedef typename add_value<A1>::type B1;
sl@0
  1050
    typedef typename add_value<A2>::type B2;
sl@0
  1051
    typedef typename add_value<A3>::type B3;
sl@0
  1052
    typedef typename add_value<A4>::type B4;
sl@0
  1053
    typedef typename add_value<A5>::type B5;
sl@0
  1054
    typedef typename add_value<A6>::type B6;
sl@0
  1055
    typedef list6<B1, B2, B3, B4, B5, B6> type;
sl@0
  1056
};
sl@0
  1057
sl@0
  1058
template<class A1, class A2, class A3, class A4, class A5, class A6, class A7> struct list_av_7
sl@0
  1059
{
sl@0
  1060
    typedef typename add_value<A1>::type B1;
sl@0
  1061
    typedef typename add_value<A2>::type B2;
sl@0
  1062
    typedef typename add_value<A3>::type B3;
sl@0
  1063
    typedef typename add_value<A4>::type B4;
sl@0
  1064
    typedef typename add_value<A5>::type B5;
sl@0
  1065
    typedef typename add_value<A6>::type B6;
sl@0
  1066
    typedef typename add_value<A7>::type B7;
sl@0
  1067
    typedef list7<B1, B2, B3, B4, B5, B6, B7> type;
sl@0
  1068
};
sl@0
  1069
sl@0
  1070
template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8> struct list_av_8
sl@0
  1071
{
sl@0
  1072
    typedef typename add_value<A1>::type B1;
sl@0
  1073
    typedef typename add_value<A2>::type B2;
sl@0
  1074
    typedef typename add_value<A3>::type B3;
sl@0
  1075
    typedef typename add_value<A4>::type B4;
sl@0
  1076
    typedef typename add_value<A5>::type B5;
sl@0
  1077
    typedef typename add_value<A6>::type B6;
sl@0
  1078
    typedef typename add_value<A7>::type B7;
sl@0
  1079
    typedef typename add_value<A8>::type B8;
sl@0
  1080
    typedef list8<B1, B2, B3, B4, B5, B6, B7, B8> type;
sl@0
  1081
};
sl@0
  1082
sl@0
  1083
template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9> struct list_av_9
sl@0
  1084
{
sl@0
  1085
    typedef typename add_value<A1>::type B1;
sl@0
  1086
    typedef typename add_value<A2>::type B2;
sl@0
  1087
    typedef typename add_value<A3>::type B3;
sl@0
  1088
    typedef typename add_value<A4>::type B4;
sl@0
  1089
    typedef typename add_value<A5>::type B5;
sl@0
  1090
    typedef typename add_value<A6>::type B6;
sl@0
  1091
    typedef typename add_value<A7>::type B7;
sl@0
  1092
    typedef typename add_value<A8>::type B8;
sl@0
  1093
    typedef typename add_value<A9>::type B9;
sl@0
  1094
    typedef list9<B1, B2, B3, B4, B5, B6, B7, B8, B9> type;
sl@0
  1095
};
sl@0
  1096
sl@0
  1097
// operator!
sl@0
  1098
sl@0
  1099
struct logical_not
sl@0
  1100
{
sl@0
  1101
    template<class V> bool operator()(V const & v) const { return !v; }
sl@0
  1102
};
sl@0
  1103
sl@0
  1104
template<class R, class F, class L>
sl@0
  1105
    bind_t< bool, logical_not, list1< bind_t<R, F, L> > >
sl@0
  1106
    operator! (bind_t<R, F, L> const & f)
sl@0
  1107
{
sl@0
  1108
    typedef list1< bind_t<R, F, L> > list_type;
sl@0
  1109
    return bind_t<bool, logical_not, list_type> ( logical_not(), list_type(f) );
sl@0
  1110
}
sl@0
  1111
sl@0
  1112
// relational operators
sl@0
  1113
sl@0
  1114
#define BOOST_BIND_OPERATOR( op, name ) \
sl@0
  1115
\
sl@0
  1116
struct name \
sl@0
  1117
{ \
sl@0
  1118
    template<class V, class W> bool operator()(V const & v, W const & w) const { return v op w; } \
sl@0
  1119
}; \
sl@0
  1120
 \
sl@0
  1121
template<class R, class F, class L, class A2> \
sl@0
  1122
    bind_t< bool, name, list2< bind_t<R, F, L>, typename add_value<A2>::type > > \
sl@0
  1123
    operator op (bind_t<R, F, L> const & f, A2 a2) \
sl@0
  1124
{ \
sl@0
  1125
    typedef typename add_value<A2>::type B2; \
sl@0
  1126
    typedef list2< bind_t<R, F, L>, B2> list_type; \
sl@0
  1127
    return bind_t<bool, name, list_type> ( name(), list_type(f, a2) ); \
sl@0
  1128
}
sl@0
  1129
sl@0
  1130
BOOST_BIND_OPERATOR( ==, equal )
sl@0
  1131
BOOST_BIND_OPERATOR( !=, not_equal )
sl@0
  1132
sl@0
  1133
BOOST_BIND_OPERATOR( <, less )
sl@0
  1134
BOOST_BIND_OPERATOR( <=, less_equal )
sl@0
  1135
sl@0
  1136
BOOST_BIND_OPERATOR( >, greater )
sl@0
  1137
BOOST_BIND_OPERATOR( >=, greater_equal )
sl@0
  1138
sl@0
  1139
#undef BOOST_BIND_OPERATOR
sl@0
  1140
sl@0
  1141
#if defined(__GNUC__) && BOOST_WORKAROUND(__GNUC__, < 3)
sl@0
  1142
sl@0
  1143
// resolve ambiguity with rel_ops
sl@0
  1144
sl@0
  1145
#define BOOST_BIND_OPERATOR( op, name ) \
sl@0
  1146
\
sl@0
  1147
template<class R, class F, class L> \
sl@0
  1148
    bind_t< bool, name, list2< bind_t<R, F, L>, bind_t<R, F, L> > > \
sl@0
  1149
    operator op (bind_t<R, F, L> const & f, bind_t<R, F, L> const & g) \
sl@0
  1150
{ \
sl@0
  1151
    typedef list2< bind_t<R, F, L>, bind_t<R, F, L> > list_type; \
sl@0
  1152
    return bind_t<bool, name, list_type> ( name(), list_type(f, g) ); \
sl@0
  1153
}
sl@0
  1154
sl@0
  1155
BOOST_BIND_OPERATOR( !=, not_equal )
sl@0
  1156
BOOST_BIND_OPERATOR( <=, less_equal )
sl@0
  1157
BOOST_BIND_OPERATOR( >, greater )
sl@0
  1158
BOOST_BIND_OPERATOR( >=, greater_equal )
sl@0
  1159
sl@0
  1160
#endif
sl@0
  1161
sl@0
  1162
// visit_each, ADL
sl@0
  1163
sl@0
  1164
#if !defined( BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP ) && !defined( __BORLANDC__ ) \
sl@0
  1165
   && !(defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ <= 3)
sl@0
  1166
sl@0
  1167
template<class V, class T> void visit_each( V & v, value<T> const & t, int )
sl@0
  1168
{
sl@0
  1169
    using boost::visit_each;
sl@0
  1170
    BOOST_BIND_VISIT_EACH( v, t.get(), 0 );
sl@0
  1171
}
sl@0
  1172
sl@0
  1173
template<class V, class R, class F, class L> void visit_each( V & v, bind_t<R, F, L> const & t, int )
sl@0
  1174
{
sl@0
  1175
    t.accept( v );
sl@0
  1176
}
sl@0
  1177
sl@0
  1178
#endif
sl@0
  1179
sl@0
  1180
} // namespace _bi
sl@0
  1181
sl@0
  1182
// visit_each, no ADL
sl@0
  1183
sl@0
  1184
#if defined( BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP ) || defined( __BORLANDC__ ) \
sl@0
  1185
  || (defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ <= 3)
sl@0
  1186
sl@0
  1187
template<class V, class T> void visit_each( V & v, _bi::value<T> const & t, int )
sl@0
  1188
{
sl@0
  1189
    BOOST_BIND_VISIT_EACH( v, t.get(), 0 );
sl@0
  1190
}
sl@0
  1191
sl@0
  1192
template<class V, class R, class F, class L> void visit_each( V & v, _bi::bind_t<R, F, L> const & t, int )
sl@0
  1193
{
sl@0
  1194
    t.accept( v );
sl@0
  1195
}
sl@0
  1196
sl@0
  1197
#endif
sl@0
  1198
sl@0
  1199
// bind
sl@0
  1200
sl@0
  1201
#ifndef BOOST_BIND
sl@0
  1202
#define BOOST_BIND bind
sl@0
  1203
#endif
sl@0
  1204
sl@0
  1205
// generic function objects
sl@0
  1206
sl@0
  1207
template<class R, class F>
sl@0
  1208
    _bi::bind_t<R, F, _bi::list0>
sl@0
  1209
    BOOST_BIND(F f)
sl@0
  1210
{
sl@0
  1211
    typedef _bi::list0 list_type;
sl@0
  1212
    return _bi::bind_t<R, F, list_type> (f, list_type());
sl@0
  1213
}
sl@0
  1214
sl@0
  1215
template<class R, class F, class A1>
sl@0
  1216
    _bi::bind_t<R, F, typename _bi::list_av_1<A1>::type>
sl@0
  1217
    BOOST_BIND(F f, A1 a1)
sl@0
  1218
{
sl@0
  1219
    typedef typename _bi::list_av_1<A1>::type list_type;
sl@0
  1220
    return _bi::bind_t<R, F, list_type> (f, list_type(a1));
sl@0
  1221
}
sl@0
  1222
sl@0
  1223
template<class R, class F, class A1, class A2>
sl@0
  1224
    _bi::bind_t<R, F, typename _bi::list_av_2<A1, A2>::type>
sl@0
  1225
    BOOST_BIND(F f, A1 a1, A2 a2)
sl@0
  1226
{
sl@0
  1227
    typedef typename _bi::list_av_2<A1, A2>::type list_type;
sl@0
  1228
    return _bi::bind_t<R, F, list_type> (f, list_type(a1, a2));
sl@0
  1229
}
sl@0
  1230
sl@0
  1231
template<class R, class F, class A1, class A2, class A3>
sl@0
  1232
    _bi::bind_t<R, F, typename _bi::list_av_3<A1, A2, A3>::type>
sl@0
  1233
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3)
sl@0
  1234
{
sl@0
  1235
    typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
sl@0
  1236
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3));
sl@0
  1237
}
sl@0
  1238
sl@0
  1239
template<class R, class F, class A1, class A2, class A3, class A4>
sl@0
  1240
    _bi::bind_t<R, F, typename _bi::list_av_4<A1, A2, A3, A4>::type>
sl@0
  1241
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4)
sl@0
  1242
{
sl@0
  1243
    typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
sl@0
  1244
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4));
sl@0
  1245
}
sl@0
  1246
sl@0
  1247
template<class R, class F, class A1, class A2, class A3, class A4, class A5>
sl@0
  1248
    _bi::bind_t<R, F, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
sl@0
  1249
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
sl@0
  1250
{
sl@0
  1251
    typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
sl@0
  1252
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5));
sl@0
  1253
}
sl@0
  1254
sl@0
  1255
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6>
sl@0
  1256
    _bi::bind_t<R, F, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
sl@0
  1257
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
sl@0
  1258
{
sl@0
  1259
    typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
sl@0
  1260
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6));
sl@0
  1261
}
sl@0
  1262
sl@0
  1263
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7>
sl@0
  1264
    _bi::bind_t<R, F, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
sl@0
  1265
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
sl@0
  1266
{
sl@0
  1267
    typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
sl@0
  1268
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7));
sl@0
  1269
}
sl@0
  1270
sl@0
  1271
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
sl@0
  1272
    _bi::bind_t<R, F, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
sl@0
  1273
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
sl@0
  1274
{
sl@0
  1275
    typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
sl@0
  1276
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8));
sl@0
  1277
}
sl@0
  1278
sl@0
  1279
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
sl@0
  1280
    _bi::bind_t<R, F, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
sl@0
  1281
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
sl@0
  1282
{
sl@0
  1283
    typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
sl@0
  1284
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
sl@0
  1285
}
sl@0
  1286
sl@0
  1287
// generic function objects, alternative syntax
sl@0
  1288
sl@0
  1289
template<class R, class F>
sl@0
  1290
    _bi::bind_t<R, F, _bi::list0>
sl@0
  1291
    BOOST_BIND(boost::type<R>, F f)
sl@0
  1292
{
sl@0
  1293
    typedef _bi::list0 list_type;
sl@0
  1294
    return _bi::bind_t<R, F, list_type> (f, list_type());
sl@0
  1295
}
sl@0
  1296
sl@0
  1297
template<class R, class F, class A1>
sl@0
  1298
    _bi::bind_t<R, F, typename _bi::list_av_1<A1>::type>
sl@0
  1299
    BOOST_BIND(boost::type<R>, F f, A1 a1)
sl@0
  1300
{
sl@0
  1301
    typedef typename _bi::list_av_1<A1>::type list_type;
sl@0
  1302
    return _bi::bind_t<R, F, list_type> (f, list_type(a1));
sl@0
  1303
}
sl@0
  1304
sl@0
  1305
template<class R, class F, class A1, class A2>
sl@0
  1306
    _bi::bind_t<R, F, typename _bi::list_av_2<A1, A2>::type>
sl@0
  1307
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2)
sl@0
  1308
{
sl@0
  1309
    typedef typename _bi::list_av_2<A1, A2>::type list_type;
sl@0
  1310
    return _bi::bind_t<R, F, list_type> (f, list_type(a1, a2));
sl@0
  1311
}
sl@0
  1312
sl@0
  1313
template<class R, class F, class A1, class A2, class A3>
sl@0
  1314
    _bi::bind_t<R, F, typename _bi::list_av_3<A1, A2, A3>::type>
sl@0
  1315
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3)
sl@0
  1316
{
sl@0
  1317
    typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
sl@0
  1318
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3));
sl@0
  1319
}
sl@0
  1320
sl@0
  1321
template<class R, class F, class A1, class A2, class A3, class A4>
sl@0
  1322
    _bi::bind_t<R, F, typename _bi::list_av_4<A1, A2, A3, A4>::type>
sl@0
  1323
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4)
sl@0
  1324
{
sl@0
  1325
    typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
sl@0
  1326
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4));
sl@0
  1327
}
sl@0
  1328
sl@0
  1329
template<class R, class F, class A1, class A2, class A3, class A4, class A5>
sl@0
  1330
    _bi::bind_t<R, F, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
sl@0
  1331
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
sl@0
  1332
{
sl@0
  1333
    typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
sl@0
  1334
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5));
sl@0
  1335
}
sl@0
  1336
sl@0
  1337
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6>
sl@0
  1338
    _bi::bind_t<R, F, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
sl@0
  1339
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
sl@0
  1340
{
sl@0
  1341
    typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
sl@0
  1342
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6));
sl@0
  1343
}
sl@0
  1344
sl@0
  1345
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7>
sl@0
  1346
    _bi::bind_t<R, F, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
sl@0
  1347
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
sl@0
  1348
{
sl@0
  1349
    typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
sl@0
  1350
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7));
sl@0
  1351
}
sl@0
  1352
sl@0
  1353
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
sl@0
  1354
    _bi::bind_t<R, F, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
sl@0
  1355
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
sl@0
  1356
{
sl@0
  1357
    typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
sl@0
  1358
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8));
sl@0
  1359
}
sl@0
  1360
sl@0
  1361
template<class R, class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
sl@0
  1362
    _bi::bind_t<R, F, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
sl@0
  1363
    BOOST_BIND(boost::type<R>, F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
sl@0
  1364
{
sl@0
  1365
    typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
sl@0
  1366
    return _bi::bind_t<R, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
sl@0
  1367
}
sl@0
  1368
sl@0
  1369
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
sl@0
  1370
sl@0
  1371
// adaptable function objects
sl@0
  1372
sl@0
  1373
template<class F>
sl@0
  1374
    _bi::bind_t<_bi::unspecified, F, _bi::list0>
sl@0
  1375
    BOOST_BIND(F f)
sl@0
  1376
{
sl@0
  1377
    typedef _bi::list0 list_type;
sl@0
  1378
    return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type());
sl@0
  1379
}
sl@0
  1380
sl@0
  1381
template<class F, class A1>
sl@0
  1382
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_1<A1>::type>
sl@0
  1383
    BOOST_BIND(F f, A1 a1)
sl@0
  1384
{
sl@0
  1385
    typedef typename _bi::list_av_1<A1>::type list_type;
sl@0
  1386
    return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type(a1));
sl@0
  1387
}
sl@0
  1388
sl@0
  1389
template<class F, class A1, class A2>
sl@0
  1390
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_2<A1, A2>::type>
sl@0
  1391
    BOOST_BIND(F f, A1 a1, A2 a2)
sl@0
  1392
{
sl@0
  1393
    typedef typename _bi::list_av_2<A1, A2>::type list_type;
sl@0
  1394
    return _bi::bind_t<_bi::unspecified, F, list_type> (f, list_type(a1, a2));
sl@0
  1395
}
sl@0
  1396
sl@0
  1397
template<class F, class A1, class A2, class A3>
sl@0
  1398
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_3<A1, A2, A3>::type>
sl@0
  1399
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3)
sl@0
  1400
{
sl@0
  1401
    typedef typename _bi::list_av_3<A1, A2, A3>::type list_type;
sl@0
  1402
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3));
sl@0
  1403
}
sl@0
  1404
sl@0
  1405
template<class F, class A1, class A2, class A3, class A4>
sl@0
  1406
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_4<A1, A2, A3, A4>::type>
sl@0
  1407
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4)
sl@0
  1408
{
sl@0
  1409
    typedef typename _bi::list_av_4<A1, A2, A3, A4>::type list_type;
sl@0
  1410
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4));
sl@0
  1411
}
sl@0
  1412
sl@0
  1413
template<class F, class A1, class A2, class A3, class A4, class A5>
sl@0
  1414
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_5<A1, A2, A3, A4, A5>::type>
sl@0
  1415
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5)
sl@0
  1416
{
sl@0
  1417
    typedef typename _bi::list_av_5<A1, A2, A3, A4, A5>::type list_type;
sl@0
  1418
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5));
sl@0
  1419
}
sl@0
  1420
sl@0
  1421
template<class F, class A1, class A2, class A3, class A4, class A5, class A6>
sl@0
  1422
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type>
sl@0
  1423
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6)
sl@0
  1424
{
sl@0
  1425
    typedef typename _bi::list_av_6<A1, A2, A3, A4, A5, A6>::type list_type;
sl@0
  1426
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6));
sl@0
  1427
}
sl@0
  1428
sl@0
  1429
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7>
sl@0
  1430
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type>
sl@0
  1431
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7)
sl@0
  1432
{
sl@0
  1433
    typedef typename _bi::list_av_7<A1, A2, A3, A4, A5, A6, A7>::type list_type;
sl@0
  1434
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7));
sl@0
  1435
}
sl@0
  1436
sl@0
  1437
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
sl@0
  1438
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type>
sl@0
  1439
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8)
sl@0
  1440
{
sl@0
  1441
    typedef typename _bi::list_av_8<A1, A2, A3, A4, A5, A6, A7, A8>::type list_type;
sl@0
  1442
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8));
sl@0
  1443
}
sl@0
  1444
sl@0
  1445
template<class F, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
sl@0
  1446
    _bi::bind_t<_bi::unspecified, F, typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type>
sl@0
  1447
    BOOST_BIND(F f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9)
sl@0
  1448
{
sl@0
  1449
    typedef typename _bi::list_av_9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::type list_type;
sl@0
  1450
    return _bi::bind_t<_bi::unspecified, F, list_type>(f, list_type(a1, a2, a3, a4, a5, a6, a7, a8, a9));
sl@0
  1451
}
sl@0
  1452
sl@0
  1453
#endif // !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
sl@0
  1454
sl@0
  1455
// function pointers
sl@0
  1456
sl@0
  1457
#define BOOST_BIND_CC
sl@0
  1458
#define BOOST_BIND_ST
sl@0
  1459
sl@0
  1460
#include <boost/bind/bind_cc.hpp>
sl@0
  1461
sl@0
  1462
#undef BOOST_BIND_CC
sl@0
  1463
#undef BOOST_BIND_ST
sl@0
  1464
sl@0
  1465
#ifdef BOOST_BIND_ENABLE_STDCALL
sl@0
  1466
sl@0
  1467
#define BOOST_BIND_CC __stdcall
sl@0
  1468
#define BOOST_BIND_ST
sl@0
  1469
sl@0
  1470
#include <boost/bind/bind_cc.hpp>
sl@0
  1471
sl@0
  1472
#undef BOOST_BIND_CC
sl@0
  1473
#undef BOOST_BIND_ST
sl@0
  1474
sl@0
  1475
#endif
sl@0
  1476
sl@0
  1477
#ifdef BOOST_BIND_ENABLE_FASTCALL
sl@0
  1478
sl@0
  1479
#define BOOST_BIND_CC __fastcall
sl@0
  1480
#define BOOST_BIND_ST
sl@0
  1481
sl@0
  1482
#include <boost/bind/bind_cc.hpp>
sl@0
  1483
sl@0
  1484
#undef BOOST_BIND_CC
sl@0
  1485
#undef BOOST_BIND_ST
sl@0
  1486
sl@0
  1487
#endif
sl@0
  1488
sl@0
  1489
#ifdef BOOST_BIND_ENABLE_PASCAL
sl@0
  1490
sl@0
  1491
#define BOOST_BIND_ST pascal
sl@0
  1492
#define BOOST_BIND_CC
sl@0
  1493
sl@0
  1494
#include <boost/bind/bind_cc.hpp>
sl@0
  1495
sl@0
  1496
#undef BOOST_BIND_ST
sl@0
  1497
#undef BOOST_BIND_CC
sl@0
  1498
sl@0
  1499
#endif
sl@0
  1500
sl@0
  1501
// member function pointers
sl@0
  1502
sl@0
  1503
#define BOOST_BIND_MF_NAME(X) X
sl@0
  1504
#define BOOST_BIND_MF_CC
sl@0
  1505
sl@0
  1506
#include <boost/bind/bind_mf_cc.hpp>
sl@0
  1507
sl@0
  1508
#undef BOOST_BIND_MF_NAME
sl@0
  1509
#undef BOOST_BIND_MF_CC
sl@0
  1510
sl@0
  1511
#ifdef BOOST_MEM_FN_ENABLE_CDECL
sl@0
  1512
sl@0
  1513
#define BOOST_BIND_MF_NAME(X) X##_cdecl
sl@0
  1514
#define BOOST_BIND_MF_CC __cdecl
sl@0
  1515
sl@0
  1516
#include <boost/bind/bind_mf_cc.hpp>
sl@0
  1517
sl@0
  1518
#undef BOOST_BIND_MF_NAME
sl@0
  1519
#undef BOOST_BIND_MF_CC
sl@0
  1520
sl@0
  1521
#endif
sl@0
  1522
sl@0
  1523
#ifdef BOOST_MEM_FN_ENABLE_STDCALL
sl@0
  1524
sl@0
  1525
#define BOOST_BIND_MF_NAME(X) X##_stdcall
sl@0
  1526
#define BOOST_BIND_MF_CC __stdcall
sl@0
  1527
sl@0
  1528
#include <boost/bind/bind_mf_cc.hpp>
sl@0
  1529
sl@0
  1530
#undef BOOST_BIND_MF_NAME
sl@0
  1531
#undef BOOST_BIND_MF_CC
sl@0
  1532
sl@0
  1533
#endif
sl@0
  1534
sl@0
  1535
#ifdef BOOST_MEM_FN_ENABLE_FASTCALL
sl@0
  1536
sl@0
  1537
#define BOOST_BIND_MF_NAME(X) X##_fastcall
sl@0
  1538
#define BOOST_BIND_MF_CC __fastcall
sl@0
  1539
sl@0
  1540
#include <boost/bind/bind_mf_cc.hpp>
sl@0
  1541
sl@0
  1542
#undef BOOST_BIND_MF_NAME
sl@0
  1543
#undef BOOST_BIND_MF_CC
sl@0
  1544
sl@0
  1545
#endif
sl@0
  1546
sl@0
  1547
// data member pointers
sl@0
  1548
sl@0
  1549
#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) || defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING) \
sl@0
  1550
    || ( defined(__BORLANDC__) && BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) )
sl@0
  1551
sl@0
  1552
template<class R, class T, class A1>
sl@0
  1553
_bi::bind_t< R, _mfi::dm<R, T>, typename _bi::list_av_1<A1>::type >
sl@0
  1554
    BOOST_BIND(R T::*f, A1 a1)
sl@0
  1555
{
sl@0
  1556
    typedef _mfi::dm<R, T> F;
sl@0
  1557
    typedef typename _bi::list_av_1<A1>::type list_type;
sl@0
  1558
    return _bi::bind_t<R, F, list_type>( F(f), list_type(a1) );
sl@0
  1559
}
sl@0
  1560
sl@0
  1561
#else
sl@0
  1562
sl@0
  1563
namespace _bi
sl@0
  1564
{
sl@0
  1565
sl@0
  1566
template< class Pm, int I > struct add_cref;
sl@0
  1567
sl@0
  1568
template< class M, class T > struct add_cref< M T::*, 0 >
sl@0
  1569
{
sl@0
  1570
    typedef M type;
sl@0
  1571
};
sl@0
  1572
sl@0
  1573
template< class M, class T > struct add_cref< M T::*, 1 >
sl@0
  1574
{
sl@0
  1575
    typedef M const & type;
sl@0
  1576
};
sl@0
  1577
sl@0
  1578
template< class R, class T > struct add_cref< R (T::*) (), 1 >
sl@0
  1579
{
sl@0
  1580
    typedef void type;
sl@0
  1581
};
sl@0
  1582
sl@0
  1583
#if !( defined(__IBMCPP__) && BOOST_WORKAROUND( __IBMCPP__, BOOST_TESTED_AT(600) ) )
sl@0
  1584
sl@0
  1585
template< class R, class T > struct add_cref< R (T::*) () const, 1 >
sl@0
  1586
{
sl@0
  1587
    typedef void type;
sl@0
  1588
};
sl@0
  1589
sl@0
  1590
#endif // __IBMCPP__
sl@0
  1591
sl@0
  1592
template<class R> struct isref
sl@0
  1593
{
sl@0
  1594
    enum value_type { value = 0 };
sl@0
  1595
};
sl@0
  1596
sl@0
  1597
template<class R> struct isref< R& >
sl@0
  1598
{
sl@0
  1599
    enum value_type { value = 1 };
sl@0
  1600
};
sl@0
  1601
sl@0
  1602
template<class R> struct isref< R* >
sl@0
  1603
{
sl@0
  1604
    enum value_type { value = 1 };
sl@0
  1605
};
sl@0
  1606
sl@0
  1607
template<class Pm, class A1> struct dm_result
sl@0
  1608
{
sl@0
  1609
    typedef typename add_cref< Pm, 1 >::type type;
sl@0
  1610
};
sl@0
  1611
sl@0
  1612
template<class Pm, class R, class F, class L> struct dm_result< Pm, bind_t<R, F, L> >
sl@0
  1613
{
sl@0
  1614
    typedef typename bind_t<R, F, L>::result_type result_type;
sl@0
  1615
    typedef typename add_cref< Pm, isref< result_type >::value >::type type;
sl@0
  1616
};
sl@0
  1617
sl@0
  1618
} // namespace _bi
sl@0
  1619
sl@0
  1620
template< class A1, class M, class T >
sl@0
  1621
sl@0
  1622
_bi::bind_t<
sl@0
  1623
    typename _bi::dm_result< M T::*, A1 >::type,
sl@0
  1624
    _mfi::dm<M, T>,
sl@0
  1625
    typename _bi::list_av_1<A1>::type
sl@0
  1626
>
sl@0
  1627
sl@0
  1628
BOOST_BIND( M T::*f, A1 a1 )
sl@0
  1629
{
sl@0
  1630
    typedef typename _bi::dm_result< M T::*, A1 >::type result_type;
sl@0
  1631
    typedef _mfi::dm<M, T> F;
sl@0
  1632
    typedef typename _bi::list_av_1<A1>::type list_type;
sl@0
  1633
    return _bi::bind_t< result_type, F, list_type >( F( f ), list_type( a1 ) );
sl@0
  1634
}
sl@0
  1635
sl@0
  1636
#endif
sl@0
  1637
sl@0
  1638
} // namespace boost
sl@0
  1639
sl@0
  1640
#ifndef BOOST_BIND_NO_PLACEHOLDERS
sl@0
  1641
sl@0
  1642
# include <boost/bind/placeholders.hpp>
sl@0
  1643
sl@0
  1644
#endif
sl@0
  1645
sl@0
  1646
#ifdef BOOST_MSVC
sl@0
  1647
# pragma warning(default: 4512) // assignment operator could not be generated
sl@0
  1648
# pragma warning(pop)
sl@0
  1649
#endif
sl@0
  1650
sl@0
  1651
#endif // #ifndef BOOST_BIND_HPP_INCLUDED