Skip to content

LiteFX::Event::remove

Unsubscribes an event handler from the event.

Synopses

Declared in <litefx/app.hpp>

Unsubscribes an event handler from the event.

bool remove(event_token_type token) noexcept;

» more...

Unsubscribes an event handler from the event.

bool remove(delegate_type const& subscriber) noexcept;

» more...

Return Value

true, if the event handler has been removed, false otherwise.

Parameters

NameDescription
tokenThe unique token of the event handler.
subscriberA delegate for the event handler.