Skip to content

LiteFX::Event::handler

Returns the delegate associated with token.

Synopsis

Declared in <litefx/app.hpp>

delegate_type const& handler(event_token_type token) const;

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if the event does not have a subscriber with the provided token.

Return Value

A reference of the delegate associated with token.

Parameters

NameDescription
tokenThe token to query for.