E-MailRelay
|
A slot class template that is parameterised only on the target method's signature (with an implicit void return) and not on the target class. More...
#include <gslot.h>
Public Member Functions | |
template<typename T > | |
Slot (T &sink, void(T::*mf)(Args...)) | |
Slot (std::function< void(Args...)> fn) | |
void | invoke (Args... args) |
template<typename T > | |
bool | rebind (T &sink) noexcept |
Public Attributes | |
std::function< void(Args...)> | m_fn |
A slot class template that is parameterised only on the target method's signature (with an implicit void return) and not on the target class.
The implementation uses std::function to hide the type of the target.
|
inline |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
std::function<void(Args...)> G::Slot::Slot< Args >::m_fn |