7#ifndef TWOBLUECUBES_CATCH_MATCHERS_GENERIC_HPP_INCLUDED
8#define TWOBLUECUBES_CATCH_MATCHERS_GENERIC_HPP_INCLUDED
26 std::function<bool(
T const&)> m_predicate;
27 std::string m_description;
31 :m_predicate(
std::move(elem)),
32 m_description(Detail::finalizeDescription(descr))
35 bool match(
T const& item )
const override {
36 return m_predicate(item);
bool match(T const &item) const override
PredicateMatcher(std::function< bool(T const &)> const &elem, std::string const &descr)
std::string describe() const override
std::string finalizeDescription(const std::string &desc)
Generic::PredicateMatcher< T > Predicate(std::function< bool(T const &)> const &predicate, std::string const &description="")
#define T(meth, val, expected)