Implements a Broadcaster for a specific function signature with return type void.
More...
#include <ikarus/utils/broadcaster/broadcaster.hh>
|
using | Token = std::shared_ptr< F > |
|
template<typename... Args>
class Ikarus::Broadcaster< void(Args...)>
- Template Parameters
-
Args | the arguments of the signature the Broadcaster can emit. |
◆ Token
template<typename... Args>
◆ notify()
template<typename... Args>
◆ registerListener()
template<typename... Args>
The function that is passed in is first stored in a shared_ptr. After this, the shared_ptr is added to the vector of listener functions, which leads to a implicit conversion to a weak_ptr. The shared_ptr is then returned to the Listener that has called this function to be stored in a vector of shared_ptr<void> listener.hh.
- Parameters
-
- Returns
- Token
◆ unregisterListener()
template<typename... Args>
The documentation for this class was generated from the following file: