template <typename TFunction> SlotType * CreateAndConnect( TFunction function, AllocatorType * allocator ); template <typename TFunction> SlotType * CreateAndConnect( TFunction function );
| CreateAndConnect ( TFunction, AllocatorType * ) | Creates a slot and connects to it. |
| CreateAndConnect ( TFunction ) | Creates a slot and connects to it. |
Allocates memory within the function.
When the "NW_SIGNAL_MULTI_SLOT_ENABLED" definition for "nw/ut/ut_Config.h" is disabled, the number of slots that can be connected to the signal is one.
When the "NW_SIGNAL_MULTI_SLOT_ENABLED" is disabled, be sure to Disconnect before Connecting. If not Disconnected, it will stop with an assert.
Allocates memory within the function.
When the "NW_SIGNAL_MULTI_SLOT_ENABLED" definition for "nw/ut/ut_Config.h" is disabled, the number of slots that can be connected to the signal is one.
When the "NW_SIGNAL_MULTI_SLOT_ENABLED" is disabled, be sure to Disconnect before Connecting. If not Disconnected, it will stop with an assert.
CONFIDENTIAL