| 3234 | template<typename ArgT> |
| 3235 | struct MatchAllOf : MatcherBase<ArgT> { |
| 3236 | bool match( ArgT const& arg ) const override { |
| 3237 | for( auto matcher : m_matchers ) { |
| 3238 | if (!matcher->match(arg)) |
| 3239 | return false; |
| 3240 | } |
| 3241 | return true; |
| 3242 | } |
| 3243 | std::string describe() const override { |
| 3244 | std::string description; |
| 3245 | description.reserve( 4 + m_matchers.size()*32 ); |