Skip to content

Commit 0093540

Browse files
committed
docs: Slots: Add section titles to break it up.
1 parent 030488b commit 0093540

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sigc++/functors/slot_base.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ struct SIGC_API slot_do_unbind
182182
* A slot can be constructed from any function object or function, regardless of
183183
* whether it is a global function, a member method, static, or virtual.
184184
*
185-
* Use the sigc::mem_fun() and sigc::ptr_fun() template functions to get a sigc::slot, like so:
185+
* @section slots-creating Creating Slots
186+
*
187+
* Use the sigc::mem_fun() or sigc::ptr_fun() template functions to get a sigc::slot, like so:
186188
* @code
187189
* sigc::slot<void, int> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
188190
* @endcode
@@ -199,6 +201,8 @@ struct SIGC_API slot_do_unbind
199201
*
200202
* You can also pass slots as method parameters where you might normally pass a function pointer.
201203
*
204+
* @section slots-auto auto
205+
*
202206
* sigc::mem_fun() and sigc::ptr_fun() return functors, but those functors are
203207
* not slots.
204208
* @code
@@ -209,6 +213,8 @@ struct SIGC_API slot_do_unbind
209213
* auto sl = sigc::mem_fun(someobj, &SomeClass::somemethod); // Not a slot!
210214
* @endcode
211215
*
216+
* @section slots-with-lambdas C++ Lambdas
217+
*
212218
* A C++11 lambda expression is a functor (function object). It is automatically
213219
* wrapped in a slot, if it is connected to a signal.
214220
* @code

0 commit comments

Comments
 (0)