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 46-63 in include/internal/catch_matchers_vector.h.
bool match(std::vector<T, AllocMatch> const &v) const override {
// !TBD: see note in EqualsMatcher
if (m_comparator.size() > v.size())
return false;
for (auto const& comparator : m_comparator) {
auto present = false;
for (const auto& el : v) {
if (el == comparator) {
present = true;
break;
}
}
if (!present) {
return false;
}
}
return true;
}