summaryrefslogtreecommitdiff
path: root/sigc++/functors/ptr_fun.h
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-12-26 18:27:32 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-12-26 18:27:32 +0100
commit46ed1289e98d562ae85fc3a60a246ea2ef5e9e9d (patch)
tree1c7f49c8ab108464c029f1a516d0636dd3b92fdd /sigc++/functors/ptr_fun.h
parent7b08f329b6616835e3b6b05ebf473a75892acfda (diff)
downloadsigc++-46ed1289e98d562ae85fc3a60a246ea2ef5e9e9d.tar.gz
ptr_fun(), mem_fun() docs: Remove left-overs from sigc++-2.0
Some documentation of template parameters described sigc++-2.0 rather than sigc++-3.0.
Diffstat (limited to 'sigc++/functors/ptr_fun.h')
-rw-r--r--sigc++/functors/ptr_fun.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sigc++/functors/ptr_fun.h b/sigc++/functors/ptr_fun.h
index b188317..1c6e265 100644
--- a/sigc++/functors/ptr_fun.h
+++ b/sigc++/functors/ptr_fun.h
@@ -26,10 +26,7 @@ namespace sigc
{
/** @defgroup ptr_fun ptr_fun()
- * ptr_fun() creates a functor from a pointer to a function.
- * If the function pointer is to an overloaded type, you must specify
- * the types using template arguments starting with the first argument.
- * It is not necessary to supply the return type.
+ * %ptr_fun() creates a functor from a pointer to a function.
*
* @par Example:
* @code
@@ -37,6 +34,9 @@ namespace sigc
* sigc::slot<void(int)> sl = sigc::ptr_fun(&foo);
* @endcode
*
+ * If the function pointer is to an overloaded type, you must specify
+ * the types using template arguments.
+ *
* @par Example:
* @code
* void foo(int) {} // choose this one
@@ -45,7 +45,7 @@ namespace sigc
* 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
+ * %ptr_fun() can also be used to convert a pointer to a static member
* function to a functor, like so:
*
* @par Example: