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

◆ combine_or()

static MatcherFunc MayaFlux::Yantra::UniversalMatcher::combine_or ( std::vector< MatcherFunc matchers)
inlinestatic

Combines multiple matchers with OR logic.

Parameters
matchersVector of matcher functions to combine
Returns
Matcher that returns true if any matcher passes

Definition at line 100 of file GrammarHelper.hpp.

101 {
102 return [matchers = std::move(matchers)](const std::any& input, const ExecutionContext& ctx) -> bool {
103 return std::ranges::any_of(matchers, [&](const auto& matcher) {
104 return matcher(input, ctx);
105 });
106 };
107 }