1 #ifndef SIMPLE_SIGNAL_H 2 #define SIMPLE_SIGNAL_H 14 template <
typename... CallableArgs>
39 Subscriber sub = std::make_shared<CallableFunction>(std::move(func));
49 #endif // SIMPLE_SIGNAL_H std::function< void(CallableArgs...)> CallableFunction
std::vector< std::weak_ptr< CallableFunction > > subscribers_
std::shared_ptr< CallableFunction > Subscriber
void notify(CallableArgs...args)
Subscriber subscribe(CallableFunction func)