// $Id$
//
-// Copyright (C) 2006
+// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
int test(int x);
};
- Foo * foo = ...;
+ Foo * foo = ...;
boost::function<int (int)> f = senf::membind(&Foo::test,foo);
int rv = f(1); // Calls foo->test(1)
\endcode
\idea Make the \a ob argument type an additional P template
parameter (using call_traits for the exact arg type? Probably
we'll get deduction problems then) . The only operation this
- object musst suppoprt is ob->*fn. This would allow the use of
+ object must support is ob->*fn. This would allow the use of
smart pointers. We should keep the T & version to still support
ob.*fn use.
*/
/** \brief Build bound member function object
- membind() supports up to 9 function parameters (represented as
- \a Args here). The \a ob argument can be either a pointer or a
- reference to \a T
- \param[in] fn member function pointer
- \param[in] ob object instance to bind this pointer to
- \returns Boost.Function object representing a bound call of \a
- fn on \a ob
+ membind() supports up to 9 function parameters (represented as
+ \a Args here). The \a ob argument can be either a pointer or a
+ reference to \a T
+ \param[in] fn member function pointer
+ \param[in] ob object instance to bind this pointer to
+ \returns Boost.Function object representing a bound call of \a
+ fn on \a ob
*/
template <typename R, typename T, typename Args>
boost::function<R (Args)> membind(R (T::* fn)( Args ), T * ob);
\f
// Local Variables:
// mode: c++
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
// End: