Skip to content

LiteFX::App::findBackend

Returns the registered backend instance for a type index.

Synopsis

Declared in <litefx/app.hpp>

template<typename TBackend>
requires meta::implements<TBackend, IBackend>
TBackend* findBackend();

Return Value

The registered backend instance for a type index, or nullptr, if the app has no backend of the provided type.

Template Parameters

NameDescription
TBackendThe type, the type index is derived from.