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

Method match

unittests/catch.hpp:2550–2557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2548 ContainsElementMatcher(T const &comparator) : m_comparator( comparator) {}
2549
2550 bool match(std::vector<T> const &v) const override {
2551 for (auto const& el : v) {
2552 if (el == m_comparator) {
2553 return true;
2554 }
2555 }
2556 return false;
2557 }
2558
2559 std::string describe() const override {
2560 return "Contains: " + ::Catch::Detail::stringify( m_comparator );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected