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

◆ get_or()

template<typename Executor , ComputeData DataType>
DataType MayaFlux::Yantra::FluentExecutor< Executor, DataType >::get_or ( const DataType &  default_value) const
inline

Return the raw result or a fallback value if the chain failed.

Parameters
default_valueValue returned when the chain is in a failed state
Returns
Processed DataType or default_value

Definition at line 456 of file OperationChain.hpp.

457 {
458 return m_successful ? m_data.data : default_value;
459 }
T data
The actual computation data.
Definition DataIO.hpp:25