2 // bind/mem_fn_template.hpp
\r
4 // Do not include this header directly
\r
6 // Copyright (c) 2001 Peter Dimov and Multi Media Ltd.
\r
8 // Distributed under the Boost Software License, Version 1.0. (See
\r
9 // accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/bind/mem_fn.html for documentation.
\r
15 #if !defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
\r
16 # define BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
21 template<class R, class T BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf0)
\r
25 typedef R result_type;
\r
26 typedef T * argument_type;
\r
30 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) ())
\r
33 template<class U> R call(U & u, T const *) const
\r
35 BOOST_MEM_FN_RETURN (u.*f_)();
\r
38 template<class U> R call(U & u, void const *) const
\r
40 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)();
\r
45 explicit BOOST_MEM_FN_NAME(mf0)(F f): f_(f) {}
\r
47 R operator()(T * p) const
\r
49 BOOST_MEM_FN_RETURN (p->*f_)();
\r
52 template<class U> R operator()(U & u) const
\r
55 BOOST_MEM_FN_RETURN call(u, p);
\r
58 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
60 template<class U> R operator()(U const & u) const
\r
63 BOOST_MEM_FN_RETURN call(u, p);
\r
68 R operator()(T & t) const
\r
70 BOOST_MEM_FN_RETURN (t.*f_)();
\r
73 bool operator==(BOOST_MEM_FN_NAME(mf0) const & rhs) const
\r
75 return f_ == rhs.f_;
\r
78 bool operator!=(BOOST_MEM_FN_NAME(mf0) const & rhs) const
\r
80 return f_ != rhs.f_;
\r
86 template<class R, class T BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf0)
\r
90 typedef R result_type;
\r
91 typedef T const * argument_type;
\r
95 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) () const)
\r
98 template<class U> R call(U & u, T const *) const
\r
100 BOOST_MEM_FN_RETURN (u.*f_)();
\r
103 template<class U> R call(U & u, void const *) const
\r
105 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)();
\r
110 explicit BOOST_MEM_FN_NAME(cmf0)(F f): f_(f) {}
\r
112 template<class U> R operator()(U const & u) const
\r
115 BOOST_MEM_FN_RETURN call(u, p);
\r
118 R operator()(T const & t) const
\r
120 BOOST_MEM_FN_RETURN (t.*f_)();
\r
123 bool operator==(BOOST_MEM_FN_NAME(cmf0) const & rhs) const
\r
125 return f_ == rhs.f_;
\r
128 bool operator!=(BOOST_MEM_FN_NAME(cmf0) const & rhs) const
\r
130 return f_ != rhs.f_;
\r
136 template<class R, class T, class A1 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf1)
\r
140 typedef R result_type;
\r
141 typedef T * first_argument_type;
\r
142 typedef A1 second_argument_type;
\r
146 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1))
\r
149 template<class U, class B1> R call(U & u, T const *, B1 & b1) const
\r
151 BOOST_MEM_FN_RETURN (u.*f_)(b1);
\r
154 template<class U, class B1> R call(U & u, void const *, B1 & b1) const
\r
156 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1);
\r
161 explicit BOOST_MEM_FN_NAME(mf1)(F f): f_(f) {}
\r
163 R operator()(T * p, A1 a1) const
\r
165 BOOST_MEM_FN_RETURN (p->*f_)(a1);
\r
168 template<class U> R operator()(U & u, A1 a1) const
\r
171 BOOST_MEM_FN_RETURN call(u, p, a1);
\r
174 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
176 template<class U> R operator()(U const & u, A1 a1) const
\r
179 BOOST_MEM_FN_RETURN call(u, p, a1);
\r
184 R operator()(T & t, A1 a1) const
\r
186 BOOST_MEM_FN_RETURN (t.*f_)(a1);
\r
189 bool operator==(BOOST_MEM_FN_NAME(mf1) const & rhs) const
\r
191 return f_ == rhs.f_;
\r
194 bool operator!=(BOOST_MEM_FN_NAME(mf1) const & rhs) const
\r
196 return f_ != rhs.f_;
\r
202 template<class R, class T, class A1 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf1)
\r
206 typedef R result_type;
\r
207 typedef T const * first_argument_type;
\r
208 typedef A1 second_argument_type;
\r
212 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1) const)
\r
215 template<class U, class B1> R call(U & u, T const *, B1 & b1) const
\r
217 BOOST_MEM_FN_RETURN (u.*f_)(b1);
\r
220 template<class U, class B1> R call(U & u, void const *, B1 & b1) const
\r
222 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1);
\r
227 explicit BOOST_MEM_FN_NAME(cmf1)(F f): f_(f) {}
\r
229 template<class U> R operator()(U const & u, A1 a1) const
\r
232 BOOST_MEM_FN_RETURN call(u, p, a1);
\r
235 R operator()(T const & t, A1 a1) const
\r
237 BOOST_MEM_FN_RETURN (t.*f_)(a1);
\r
240 bool operator==(BOOST_MEM_FN_NAME(cmf1) const & rhs) const
\r
242 return f_ == rhs.f_;
\r
245 bool operator!=(BOOST_MEM_FN_NAME(cmf1) const & rhs) const
\r
247 return f_ != rhs.f_;
\r
253 template<class R, class T, class A1, class A2 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf2)
\r
257 typedef R result_type;
\r
261 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2))
\r
264 template<class U, class B1, class B2> R call(U & u, T const *, B1 & b1, B2 & b2) const
\r
266 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2);
\r
269 template<class U, class B1, class B2> R call(U & u, void const *, B1 & b1, B2 & b2) const
\r
271 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2);
\r
276 explicit BOOST_MEM_FN_NAME(mf2)(F f): f_(f) {}
\r
278 R operator()(T * p, A1 a1, A2 a2) const
\r
280 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2);
\r
283 template<class U> R operator()(U & u, A1 a1, A2 a2) const
\r
286 BOOST_MEM_FN_RETURN call(u, p, a1, a2);
\r
289 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
291 template<class U> R operator()(U const & u, A1 a1, A2 a2) const
\r
294 BOOST_MEM_FN_RETURN call(u, p, a1, a2);
\r
299 R operator()(T & t, A1 a1, A2 a2) const
\r
301 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2);
\r
304 bool operator==(BOOST_MEM_FN_NAME(mf2) const & rhs) const
\r
306 return f_ == rhs.f_;
\r
309 bool operator!=(BOOST_MEM_FN_NAME(mf2) const & rhs) const
\r
311 return f_ != rhs.f_;
\r
317 template<class R, class T, class A1, class A2 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf2)
\r
321 typedef R result_type;
\r
325 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2) const)
\r
328 template<class U, class B1, class B2> R call(U & u, T const *, B1 & b1, B2 & b2) const
\r
330 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2);
\r
333 template<class U, class B1, class B2> R call(U & u, void const *, B1 & b1, B2 & b2) const
\r
335 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2);
\r
340 explicit BOOST_MEM_FN_NAME(cmf2)(F f): f_(f) {}
\r
342 template<class U> R operator()(U const & u, A1 a1, A2 a2) const
\r
345 BOOST_MEM_FN_RETURN call(u, p, a1, a2);
\r
348 R operator()(T const & t, A1 a1, A2 a2) const
\r
350 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2);
\r
353 bool operator==(BOOST_MEM_FN_NAME(cmf2) const & rhs) const
\r
355 return f_ == rhs.f_;
\r
358 bool operator!=(BOOST_MEM_FN_NAME(cmf2) const & rhs) const
\r
360 return f_ != rhs.f_;
\r
366 template<class R, class T, class A1, class A2, class A3 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf3)
\r
370 typedef R result_type;
\r
374 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3))
\r
377 template<class U, class B1, class B2, class B3> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3) const
\r
379 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3);
\r
382 template<class U, class B1, class B2, class B3> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3) const
\r
384 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3);
\r
389 explicit BOOST_MEM_FN_NAME(mf3)(F f): f_(f) {}
\r
391 R operator()(T * p, A1 a1, A2 a2, A3 a3) const
\r
393 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3);
\r
396 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3) const
\r
399 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3);
\r
402 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
404 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3) const
\r
407 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3);
\r
412 R operator()(T & t, A1 a1, A2 a2, A3 a3) const
\r
414 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3);
\r
417 bool operator==(BOOST_MEM_FN_NAME(mf3) const & rhs) const
\r
419 return f_ == rhs.f_;
\r
422 bool operator!=(BOOST_MEM_FN_NAME(mf3) const & rhs) const
\r
424 return f_ != rhs.f_;
\r
430 template<class R, class T, class A1, class A2, class A3 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf3)
\r
434 typedef R result_type;
\r
438 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3) const)
\r
441 template<class U, class B1, class B2, class B3> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3) const
\r
443 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3);
\r
446 template<class U, class B1, class B2, class B3> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3) const
\r
448 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3);
\r
453 explicit BOOST_MEM_FN_NAME(cmf3)(F f): f_(f) {}
\r
455 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3) const
\r
458 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3);
\r
461 R operator()(T const & t, A1 a1, A2 a2, A3 a3) const
\r
463 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3);
\r
466 bool operator==(BOOST_MEM_FN_NAME(cmf3) const & rhs) const
\r
468 return f_ == rhs.f_;
\r
471 bool operator!=(BOOST_MEM_FN_NAME(cmf3) const & rhs) const
\r
473 return f_ != rhs.f_;
\r
479 template<class R, class T, class A1, class A2, class A3, class A4 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf4)
\r
483 typedef R result_type;
\r
487 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4))
\r
490 template<class U, class B1, class B2, class B3, class B4> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const
\r
492 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4);
\r
495 template<class U, class B1, class B2, class B3, class B4> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const
\r
497 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4);
\r
502 explicit BOOST_MEM_FN_NAME(mf4)(F f): f_(f) {}
\r
504 R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
506 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4);
\r
509 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
512 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4);
\r
515 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
517 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
520 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4);
\r
525 R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
527 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4);
\r
530 bool operator==(BOOST_MEM_FN_NAME(mf4) const & rhs) const
\r
532 return f_ == rhs.f_;
\r
535 bool operator!=(BOOST_MEM_FN_NAME(mf4) const & rhs) const
\r
537 return f_ != rhs.f_;
\r
543 template<class R, class T, class A1, class A2, class A3, class A4 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf4)
\r
547 typedef R result_type;
\r
551 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4) const)
\r
554 template<class U, class B1, class B2, class B3, class B4> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const
\r
556 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4);
\r
559 template<class U, class B1, class B2, class B3, class B4> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4) const
\r
561 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4);
\r
566 explicit BOOST_MEM_FN_NAME(cmf4)(F f): f_(f) {}
\r
568 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
571 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4);
\r
574 R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4) const
\r
576 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4);
\r
579 bool operator==(BOOST_MEM_FN_NAME(cmf4) const & rhs) const
\r
581 return f_ == rhs.f_;
\r
584 bool operator!=(BOOST_MEM_FN_NAME(cmf4) const & rhs) const
\r
586 return f_ != rhs.f_;
\r
592 template<class R, class T, class A1, class A2, class A3, class A4, class A5 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf5)
\r
596 typedef R result_type;
\r
600 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5))
\r
603 template<class U, class B1, class B2, class B3, class B4, class B5> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const
\r
605 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5);
\r
608 template<class U, class B1, class B2, class B3, class B4, class B5> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const
\r
610 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5);
\r
615 explicit BOOST_MEM_FN_NAME(mf5)(F f): f_(f) {}
\r
617 R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
619 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4, a5);
\r
622 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
625 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5);
\r
628 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
630 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
633 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5);
\r
638 R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
640 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5);
\r
643 bool operator==(BOOST_MEM_FN_NAME(mf5) const & rhs) const
\r
645 return f_ == rhs.f_;
\r
648 bool operator!=(BOOST_MEM_FN_NAME(mf5) const & rhs) const
\r
650 return f_ != rhs.f_;
\r
656 template<class R, class T, class A1, class A2, class A3, class A4, class A5 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf5)
\r
660 typedef R result_type;
\r
664 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5) const)
\r
667 template<class U, class B1, class B2, class B3, class B4, class B5> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const
\r
669 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5);
\r
672 template<class U, class B1, class B2, class B3, class B4, class B5> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5) const
\r
674 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5);
\r
679 explicit BOOST_MEM_FN_NAME(cmf5)(F f): f_(f) {}
\r
681 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
684 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5);
\r
687 R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) const
\r
689 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5);
\r
692 bool operator==(BOOST_MEM_FN_NAME(cmf5) const & rhs) const
\r
694 return f_ == rhs.f_;
\r
697 bool operator!=(BOOST_MEM_FN_NAME(cmf5) const & rhs) const
\r
699 return f_ != rhs.f_;
\r
705 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf6)
\r
709 typedef R result_type;
\r
713 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6))
\r
716 template<class U, class B1, class B2, class B3, class B4, class B5, class B6> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const
\r
718 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6);
\r
721 template<class U, class B1, class B2, class B3, class B4, class B5, class B6> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const
\r
723 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6);
\r
728 explicit BOOST_MEM_FN_NAME(mf6)(F f): f_(f) {}
\r
730 R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
732 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4, a5, a6);
\r
735 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
738 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6);
\r
741 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
743 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
746 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6);
\r
751 R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
753 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6);
\r
756 bool operator==(BOOST_MEM_FN_NAME(mf6) const & rhs) const
\r
758 return f_ == rhs.f_;
\r
761 bool operator!=(BOOST_MEM_FN_NAME(mf6) const & rhs) const
\r
763 return f_ != rhs.f_;
\r
769 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf6)
\r
773 typedef R result_type;
\r
777 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6) const)
\r
780 template<class U, class B1, class B2, class B3, class B4, class B5, class B6> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const
\r
782 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6);
\r
785 template<class U, class B1, class B2, class B3, class B4, class B5, class B6> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6) const
\r
787 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6);
\r
792 explicit BOOST_MEM_FN_NAME(cmf6)(F f): f_(f) {}
\r
794 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
797 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6);
\r
800 R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) const
\r
802 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6);
\r
805 bool operator==(BOOST_MEM_FN_NAME(cmf6) const & rhs) const
\r
807 return f_ == rhs.f_;
\r
810 bool operator!=(BOOST_MEM_FN_NAME(cmf6) const & rhs) const
\r
812 return f_ != rhs.f_;
\r
818 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf7)
\r
822 typedef R result_type;
\r
826 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6, A7))
\r
829 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const
\r
831 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6, b7);
\r
834 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const
\r
836 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7);
\r
841 explicit BOOST_MEM_FN_NAME(mf7)(F f): f_(f) {}
\r
843 R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
845 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4, a5, a6, a7);
\r
848 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
851 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7);
\r
854 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
856 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
859 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7);
\r
864 R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
866 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6, a7);
\r
869 bool operator==(BOOST_MEM_FN_NAME(mf7) const & rhs) const
\r
871 return f_ == rhs.f_;
\r
874 bool operator!=(BOOST_MEM_FN_NAME(mf7) const & rhs) const
\r
876 return f_ != rhs.f_;
\r
882 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf7)
\r
886 typedef R result_type;
\r
890 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6, A7) const)
\r
893 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const
\r
895 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6, b7);
\r
898 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7) const
\r
900 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7);
\r
905 explicit BOOST_MEM_FN_NAME(cmf7)(F f): f_(f) {}
\r
907 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
910 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7);
\r
913 R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) const
\r
915 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6, a7);
\r
918 bool operator==(BOOST_MEM_FN_NAME(cmf7) const & rhs) const
\r
920 return f_ == rhs.f_;
\r
923 bool operator!=(BOOST_MEM_FN_NAME(cmf7) const & rhs) const
\r
925 return f_ != rhs.f_;
\r
931 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(mf8)
\r
935 typedef R result_type;
\r
939 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6, A7, A8))
\r
942 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const
\r
944 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6, b7, b8);
\r
947 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const
\r
949 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7, b8);
\r
954 explicit BOOST_MEM_FN_NAME(mf8)(F f): f_(f) {}
\r
956 R operator()(T * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
958 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4, a5, a6, a7, a8);
\r
961 template<class U> R operator()(U & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
964 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7, a8);
\r
967 #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r
969 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
972 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7, a8);
\r
977 R operator()(T & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
979 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6, a7, a8);
\r
982 bool operator==(BOOST_MEM_FN_NAME(mf8) const & rhs) const
\r
984 return f_ == rhs.f_;
\r
987 bool operator!=(BOOST_MEM_FN_NAME(mf8) const & rhs) const
\r
989 return f_ != rhs.f_;
\r
995 template<class R, class T, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8 BOOST_MEM_FN_CLASS_F> class BOOST_MEM_FN_NAME(cmf8)
\r
999 typedef R result_type;
\r
1003 BOOST_MEM_FN_TYPEDEF(R (BOOST_MEM_FN_CC T::*F) (A1, A2, A3, A4, A5, A6, A7, A8) const)
\r
1006 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8> R call(U & u, T const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const
\r
1008 BOOST_MEM_FN_RETURN (u.*f_)(b1, b2, b3, b4, b5, b6, b7, b8);
\r
1011 template<class U, class B1, class B2, class B3, class B4, class B5, class B6, class B7, class B8> R call(U & u, void const *, B1 & b1, B2 & b2, B3 & b3, B4 & b4, B5 & b5, B6 & b6, B7 & b7, B8 & b8) const
\r
1013 BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)(b1, b2, b3, b4, b5, b6, b7, b8);
\r
1018 explicit BOOST_MEM_FN_NAME(cmf8)(F f): f_(f) {}
\r
1020 R operator()(T const * p, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
1022 BOOST_MEM_FN_RETURN (p->*f_)(a1, a2, a3, a4, a5, a6, a7, a8);
\r
1025 template<class U> R operator()(U const & u, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
1028 BOOST_MEM_FN_RETURN call(u, p, a1, a2, a3, a4, a5, a6, a7, a8);
\r
1031 R operator()(T const & t, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) const
\r
1033 BOOST_MEM_FN_RETURN (t.*f_)(a1, a2, a3, a4, a5, a6, a7, a8);
\r
1036 bool operator==(BOOST_MEM_FN_NAME(cmf8) const & rhs) const
\r
1038 return f_ == rhs.f_;
\r
1041 bool operator!=(BOOST_MEM_FN_NAME(cmf8) const & rhs) const
\r
1043 return f_ != rhs.f_;
\r
1047 #undef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
\r