MayaFlux
0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
combine_or()
static
MatcherFunc
MayaFlux::Yantra::UniversalMatcher::combine_or
(
std::vector<
MatcherFunc
>
matchers
)
inline
static
Combines multiple matchers with OR logic.
Parameters
matchers
Vector of matcher functions to combine
Returns
Matcher that returns true if any matcher passes
Definition at line
99
of file
GrammarHelper.hpp
.
100
{
101
return
[matchers = std::move(matchers)](
const
std::any& input,
const
ExecutionContext& ctx) ->
bool
{
102
return
std::ranges::any_of(matchers, [&](
const
auto
& matcher) {
103
return
matcher(input, ctx);
104
});
105
};
106
}
MayaFlux
Yantra
UniversalMatcher
Generated by
1.9.8