MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / matchPattern

Function matchPattern

develop/matchit/patterns.h:300–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299 template <typename Value, typename Pattern, typename ConctextT>
300 constexpr auto matchPattern(Value &&value, Pattern const &pattern,
301 int32_t depth, ConctextT &context)
302 {
303 auto const result = PatternTraits<Pattern>::matchPatternImpl(
304 std::forward<Value>(value), pattern, depth, context);
305 auto const process = result ? IdProcess::kCONFIRM : IdProcess::kCANCEL;
306 processId(pattern, depth, process);
307 return result;
308 }
309
310 template <typename Pattern, typename Func>
311 class PatternPair

Callers 15

matchValueMethod · 0.85
matchPatternImplMethod · 0.85
matchPatternImplMethod · 0.85
matchPatternImplMethod · 0.85
matchPatternImplMethod · 0.85
matchPatternImplMethod · 0.85
matchPatternMultipleImplFunction · 0.85
matchPatternRangeImplFunction · 0.85
matchPatternImplMethod · 0.85
matchPatternImplMethod · 0.85
matchit.hFile · 0.85
matchPatternImplMethod · 0.85

Calls 1

processIdFunction · 0.85

Tested by

no test coverage detected