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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy