Template Struct ApproxMatcher

Inheritance Relationships

Base Type

Struct Documentation

template<typename T, typename AllocComp, typename AllocMatch>
struct Catch::Matchers::Vector::ApproxMatcher : public Catch::Matchers::Impl::MatcherBase<std::vector<T, AllocMatch>>

Public Functions

ApproxMatcher(std::vector<T, AllocComp> const &comparator)
bool match(std::vector<T, AllocMatch> const &v) const override
std::string describe() const override
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher &epsilon(T const &newEpsilon)
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher &margin(T const &newMargin)
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher &scale(T const &newScale)

Public Members

std::vector<T, AllocComp> const &m_comparator
Catch::Detail::Approx approx = Catch::Detail::Approx::custom()