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

◆ store() [1/3]

template<typename T >
std::shared_ptr< T > MayaFlux::store ( std::shared_ptr< T >  obj)

Transfer ownership of an existing object to the persistent store for process lifetime.

Template Parameters
TAny type managed by shared_ptr.
Parameters
objObject to retain.
Returns
The same shared_ptr, allowing inline chaining.

Definition at line 28 of file Persist.hpp.

29{
30 internal::persistent_store().push_back(std::static_pointer_cast<void>(obj));
31 return obj;
32}

References MayaFlux::internal::persistent_store().

Referenced by make_persistent_shared().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: