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

Method match

unittests/catch.hpp:2253–2259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2251 template<typename ArgT>
2252 struct MatchAllOf : MatcherBase<ArgT> {
2253 bool match( ArgT const& arg ) const override {
2254 for( auto matcher : m_matchers ) {
2255 if (!matcher->match(arg))
2256 return false;
2257 }
2258 return true;
2259 }
2260 std::string describe() const override {
2261 std::string description;
2262 description.reserve( 4 + m_matchers.size()*32 );

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected