[libsigcplusplus] docs: mem_fun/ptr_fun: Use the sigc::slot<R(Args...)> syntax.



commit 69b2e5d422e7193d6d1a54ed97882babe10d2e5e
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 16 10:29:55 2016 +0100

    docs: mem_fun/ptr_fun: Use the sigc::slot<R(Args...)> syntax.

 sigc++/functors/mem_fun.h |    6 +++---
 sigc++/functors/ptr_fun.h |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/sigc++/functors/mem_fun.h b/sigc++/functors/mem_fun.h
index f68a918..5caac6b 100644
--- a/sigc++/functors/mem_fun.h
+++ b/sigc++/functors/mem_fun.h
@@ -31,7 +31,7 @@ namespace sigc {
  *   void bar(int) {}
  * };
  * foo my_foo;
- * sigc::slot<void, int> sl = sigc::mem_fun(my_foo, &foo::bar);
+ * sigc::slot<void(int)> sl = sigc::mem_fun(my_foo, &foo::bar);
  * // Note: f is not a slot. It will not be invalidated when my_foo is deleted.
  * auto f = sigc::mem_fun(my_foo, &foo::bar); // Usually not what you want.
  * @endcode
@@ -45,7 +45,7 @@ namespace sigc {
  *   void bar(int) const {}
  * };
  * const foo my_foo;
- * sigc::slot<void, int> sl = sigc::mem_fun(my_foo, &foo::bar);
+ * sigc::slot<void(int)> sl = sigc::mem_fun(my_foo, &foo::bar);
  * @endcode
  *
  * Use mem_fun#() if there is an ambiguity as to the number of arguments.
@@ -59,7 +59,7 @@ namespace sigc {
  *   void bar(int, int) {}
  * };
  * foo my_foo;
- * sigc::slot<void, int> sl = sigc::mem_fun1<int>(my_foo, &foo::bar);
+ * sigc::slot<void(int)> sl = sigc::mem_fun1<int>(my_foo, &foo::bar);
  * @endcode
  *
  * @ingroup sigcfunctors
diff --git a/sigc++/functors/ptr_fun.h b/sigc++/functors/ptr_fun.h
index 9eab18a..527be3f 100644
--- a/sigc++/functors/ptr_fun.h
+++ b/sigc++/functors/ptr_fun.h
@@ -13,7 +13,7 @@ namespace sigc {
  * @par Example:
  * @code
  * void foo(int) {}
- * sigc::slot<void, int> sl = sigc::ptr_fun(&foo);
+ * sigc::slot<void(int)> sl = sigc::ptr_fun(&foo);
  * @endcode
  *
  * @par Example:
@@ -21,7 +21,7 @@ namespace sigc {
  * void foo(int) {}  // choose this one
  * void foo(float) {}
  * void foo(int, int) {}
- * sigc::slot<void, long> sl = sigc::ptr_fun<void, int>(&foo);
+ * sigc::slot<void(long)> sl = sigc::ptr_fun<void, int>(&foo);
  * @endcode
  *
  * ptr_fun() can also be used to convert a pointer to a static member
@@ -33,7 +33,7 @@ namespace sigc {
  * {
  *   static void bar(int) {}
  * };
- * sigc::slot<void, int> sl = sigc::ptr_fun(&foo::bar);
+ * sigc::slot<void(int)> sl = sigc::ptr_fun(&foo::bar);
  * @endcode
  *
  * @ingroup sigcfunctors


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]