| 2155 | template <typename ArgT> struct MatchAnyOf : MatcherBase<ArgT> { |
| 2156 | |
| 2157 | bool match(ArgT const &arg) const override { |
| 2158 | for (auto matcher : m_matchers) { |
| 2159 | if (matcher->match(arg)) |
| 2160 | return true; |
| 2161 | } |
| 2162 | return false; |
| 2163 | } |
| 2164 | std::string describe() const override { |
| 2165 | std::string description; |
| 2166 | description.reserve(4 + m_matchers.size() * 32); |