Function match

Synopsis

#include <include/internal/catch_matchers_vector.h>

bool match(std::vector< T, AllocMatch > const &v) const override

Description

No description yet.

Source

Lines 99-106 in include/internal/catch_matchers_vector.h.

bool match(std::vector<T, AllocMatch> const &v) const override {
    if (m_comparator.size() != v.size())
        return false;
    for (std::size_t i = 0; i < v.size(); ++i)
        if (m_comparator[i] != approx(v[i]))
            return false;
    return true;
}





Add Discussion as Guest

Log in