| 3287 | template<typename ArgT> |
| 3288 | struct MatchAllOf : MatcherBase<ArgT> { |
| 3289 | bool match( ArgT const& arg ) const override { |
| 3290 | for( auto matcher : m_matchers ) { |
| 3291 | if (!matcher->match(arg)) |
| 3292 | return false; |
| 3293 | } |
| 3294 | return true; |
| 3295 | } |
| 3296 | std::string describe() const override { |
| 3297 | std::string description; |
| 3298 | description.reserve( 4 + m_matchers.size()*32 ); |