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

◆ combine_or()

MatcherFunc MayaFlux::Yantra::Matcher::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 84 of file GrammarHelper.hpp.

85 {
86 return [matchers = std::move(matchers)](const std::any& input, const ExecutionContext& ctx) -> bool {
87 return std::ranges::any_of(matchers, [&](const auto& matcher) {
88 return matcher(input, ctx);
89 });
90 };
91 }