Connect slot to this signaler, optionally in group.
Declared in <bdlmt_signaler.h>
template<class t_FUNC>
SignalerConnection
connect(
t_FUNC&& slot,
int group = 0);
Connect the specified slot, a callable object which must meet the Slot Object Requirements described in the component documentation, to this signaler. Optionally specify a group used to order slots upon invocation. Return an instance of SignalerConnection representing the created connection. This function meets the strong exception guarantee. Note that the connected slot may be called by a signal emitted from another thread before this function completes. Also note that it is unspecified whether connecting a slot while the signaler is emitting will result in the slot being called immediately. Note that t_FUNC may have a return type other than void, but in that case, when the slot is called, the return value will be discarded.
connection representing the created slot association
| Name | Description |
|---|---|
| slot | callable object meeting the Slot Object Requirements |
| group | call-group used to order slots upon invocation |