Struct MatchNotOf

Synopsis

#include <include/internal/catch_matchers.h>

template<typename ArgT>
struct MatchNotOf : MatcherBase<ArgT>

Description

No description yet.

Methods

MatchNotOf
describe
match

Source

Lines 137-150 in include/internal/catch_matchers.h.

template<typename ArgT>
struct MatchNotOf : MatcherBase<ArgT> {
    MatchNotOf( MatcherBase<ArgT> const& underlyingMatcher ) : m_underlyingMatcher( underlyingMatcher ) {}
    bool match( ArgT const& arg ) const override {
        return !m_underlyingMatcher.match( arg );
    }
    std::string describe() const override {
        return "not " + m_underlyingMatcher.toString();
    }
    MatcherBase<ArgT> const& m_underlyingMatcher;
};





Add Discussion as Guest

Log in