| 2251 | template<typename ArgT> |
| 2252 | struct MatchAllOf : MatcherBase<ArgT> { |
| 2253 | bool match( ArgT const& arg ) const override { |
| 2254 | for( auto matcher : m_matchers ) { |
| 2255 | if (!matcher->match(arg)) |
| 2256 | return false; |
| 2257 | } |
| 2258 | return true; |
| 2259 | } |
| 2260 | std::string describe() const override { |
| 2261 | std::string description; |
| 2262 | description.reserve( 4 + m_matchers.size()*32 ); |