Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
SubscriptionIdentifier;
template <String::Hasher eventName = Type::Hash{}, class... Args>
auto EventDispatcher::emit(const Args&... args) -> void;
template <class... Args>
auto EventDispatcher::emit(Type::Hash eventName, const Args&... args) -> void;
auto EventDispatcher::subscribe(Type::Hash eventHash, auto&& function) -> SubscriptionIdentifier;
template <String::Hasher... eventNames>
auto EventDispatcher::subscribe(auto&& function);
auto EventDispatcher::unsubscribe(SubscriptionIdentifier subscriptionIdentifier) -> bool;
auto EventDispatcher::unsubscribe(Type::Hash eventHash) -> bool;
template <String::Hasher... eventNames>
auto EventDispatcher::unsubscribe() -> bool;
auto EventDispatcher::clearSubscribers() -> void;