File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ struct SIGC_API slot_do_unbind
182
182
* A slot can be constructed from any function object or function, regardless of
183
183
* whether it is a global function, a member method, static, or virtual.
184
184
*
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:
186
188
* @code
187
189
* sigc::slot<void, int> sl = sigc::mem_fun(someobj, &SomeClass::somemethod);
188
190
* @endcode
@@ -199,6 +201,8 @@ struct SIGC_API slot_do_unbind
199
201
*
200
202
* You can also pass slots as method parameters where you might normally pass a function pointer.
201
203
*
204
+ * @section slots-auto auto
205
+ *
202
206
* sigc::mem_fun() and sigc::ptr_fun() return functors, but those functors are
203
207
* not slots.
204
208
* @code
@@ -209,6 +213,8 @@ struct SIGC_API slot_do_unbind
209
213
* auto sl = sigc::mem_fun(someobj, &SomeClass::somemethod); // Not a slot!
210
214
* @endcode
211
215
*
216
+ * @section slots-with-lambdas C++ Lambdas
217
+ *
212
218
* A C++11 lambda expression is a functor (function object). It is automatically
213
219
* wrapped in a slot, if it is connected to a signal.
214
220
* @code
You can’t perform that action at this time.
0 commit comments