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

◆ combine_and()

MatcherFunc MayaFlux::Yantra::Matcher::combine_and ( std::vector< MatcherFunc > matchers)
inlinestatic

Combines multiple matchers with AND logic.

Parameters
matchersVector of matcher functions to combine
Returns
Matcher that returns true only if all matchers pass

Definition at line 70 of file GrammarHelper.hpp.

71 {
72 return [matchers = std::move(matchers)](const std::any& input, const ExecutionContext& ctx) -> bool {
73 return std::ranges::all_of(matchers, [&](const auto& matcher) {
74 return matcher(input, ctx);
75 });
76 };
77 }

Referenced by MayaFlux::Yantra::ComputationGrammar::RuleBuilder::build().

Here is the caller graph for this function: