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

◆ try_get()

template<typename OpClass >
std::optional< std::shared_ptr< OpClass > > MayaFlux::Yantra::OperationPool::try_get ( const std::string &  name)
inline

Try to get operation, return optional.

Template Parameters
OpClassExpected operation class type
Parameters
nameName of the operation
Returns
Optional containing the operation if found and correct type

Definition at line 171 of file OperationPool.hpp.

172 {
173 auto op = get<OpClass>(name);
174 return op ? std::optional(op) : std::nullopt;
175 }