Template Struct ApproxMatcher
Defined in File catch.hpp
Inheritance Relationships
Base Type
public Catch::Matchers::Impl::MatcherBase< std::vector< T, AllocMatch > >
(Template Struct MatcherBase)
Struct Documentation
-
template<typename T, typename AllocComp, typename AllocMatch>
struct ApproxMatcher : public Catch::Matchers::Impl::MatcherBase<std::vector<T, AllocMatch>> Public Functions
-
inline bool match(std::vector<T, AllocMatch> const &v) const override
-
inline virtual std::string describe() const override
-
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
inline ApproxMatcher &epsilon(T const &newEpsilon)
-
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
inline ApproxMatcher &margin(T const &newMargin)
-
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
inline ApproxMatcher &scale(T const &newScale)
-
inline bool match(std::vector<T, AllocMatch> const &v) const override