MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_persistent() [1/2]

template<typename T , typename... Args>
T & MayaFlux::make_persistent ( Args &&...  args)

Construct a T in place, retain it for process lifetime, and return a direct reference.

Template Parameters
TType to construct.
ArgsConstructor argument types.
Parameters
argsForwarded to std::make_shared<T>.
Returns
Reference to the newly constructed object. Lifetime is the process lifetime.

Definition at line 90 of file Persist.hpp.

91{
92 return *make_persistent_shared<T>(std::forward<Args>(args)...);
93}