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

◆ create_container()

template<typename ContainerType , typename... Args>
requires std::derived_from<ContainerType, Kakshya::SignalSourceContainer>
auto MayaFlux::create_container ( Args &&...  args) -> std::shared_ptr<ContainerType>

creates a new container of the specified type

Template Parameters
ContainerTypeType of container to create (must be derived from SignalSourceContainer)
ArgsConstructor argument types
Parameters
argsConstructor arguments for the container
Returns
Shared pointer to the created container

Definition at line 61 of file Depot.hpp.

62{
63 return std::make_shared<ContainerType>(std::forward<Args>(args)...);
64}