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

◆ set()

template<typename T >
ExecutionContext & MayaFlux::Yantra::ExecutionContext::set ( std::string  key,
T &&  value 
)
inline

Insert or update metadata value.

Adds or replaces a value in the metadata store.

Template Parameters
TValue type
Parameters
keyMetadata key
valueValue to store
Returns
Reference to this context for fluent chaining

Definition at line 133 of file ExecutionContext.hpp.

134 {
135 execution_metadata[std::move(key)] = std::forward<T>(value);
136 return *this;
137 }
std::unordered_map< std::string, std::any > execution_metadata
Arbitrary metadata parameters used by operations.