MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / match

Method match

unittests/catch.hpp:2286–2292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2284 struct MatchAnyOf : MatcherBase<ArgT> {
2285
2286 bool match( ArgT const& arg ) const override {
2287 for( auto matcher : m_matchers ) {
2288 if (matcher->match(arg))
2289 return true;
2290 }
2291 return false;
2292 }
2293 std::string describe() const override {
2294 std::string description;
2295 description.reserve( 4 + m_matchers.size()*32 );

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected