LiteFX::Event::operator-=¶
Unsubscribes an event handler from the event.
Synopses¶
Declared in <litefx/app.hpp>
Unsubscribes an event handler from the event.
bool operator-=(event_token_type token) noexcept;
Unsubscribes an event handler from the event.
bool operator-=(delegate_type const& subscriber) noexcept;
Return Value¶
true, if the event handler has been removed, false otherwise.
Parameters¶
| Name | Description |
|---|---|
| token | The unique token of the event handler. |
| subscriber | A delegate for the event handler. |