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

Method PredicateMatcher

unittests/catch.hpp:2417–2420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415public:
2416
2417 PredicateMatcher(std::function<bool(T const&)> const& elem, std::string const& descr)
2418 :m_predicate(std::move(elem)),
2419 m_description(Detail::finalizeDescription(descr))
2420 {}
2421
2422 bool match( T const& item ) const override {
2423 return m_predicate(item);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected