Skip to content

Commit bc91a4f

Browse files
committed
connection: Improve the class documentation
Fixes #88
1 parent 0e3724c commit bc91a4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sigc++/connection.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@
2525
namespace sigc
2626
{
2727

28-
/** This may be used to disconnect the referred slot at any time (disconnect()).
28+
/** Convenience class for safe disconnection.
29+
*
30+
* This may be used to disconnect the referred slot at any time (disconnect()).
31+
* @ref sigc::signal_with_accumulator::connect() "sigc::signal::connect()"
32+
* returns a %sigc::connection.
33+
* @code
34+
* sigc::connection conn = sig.connect(sigc::mem_fun(a, &A::foo));
35+
* @endcode
2936
* If the slot has already been destroyed, disconnect() does nothing. empty() or
3037
* operator bool() can be used to test whether the connection is
3138
* still active. The connection can be blocked (block(), unblock()).

0 commit comments

Comments
 (0)