MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / UnorderedEqualsMatcher

Method UnorderedEqualsMatcher

unittests/catch.hpp:2621–2621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2619 template<typename T>
2620 struct UnorderedEqualsMatcher : MatcherBase<std::vector<T>> {
2621 UnorderedEqualsMatcher(std::vector<T> const& target) : m_target(target) {}
2622 bool match(std::vector<T> const& vec) const override {
2623 // Note: This is a reimplementation of std::is_permutation,
2624 // because I don't want to include <algorithm> inside the common path

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected