Skip to content

LiteFX::AppBuilder::use

Called by child builders to pass a constructed object back to the parent builder.

Synopsis

Declared in <litefx/app.hpp>

[[dllexport, dllimport]] void use(UniquePtr<IBackend>&& backend);

Description

This method must be implemented for each child builder, a builder can create. This introduces a hard dependency between child and parent builders. It is not possible to define a child builder without implementing the counter part in the parent builder.

Parameters

NameDescription
backendRepresents a unique pointer, that expresses exclusive ownership.