| 2291 | return false; |
| 2292 | } |
| 2293 | std::string describe() const override { |
| 2294 | std::string description; |
| 2295 | description.reserve( 4 + m_matchers.size()*32 ); |
| 2296 | description += "( "; |
| 2297 | bool first = true; |
| 2298 | for( auto matcher : m_matchers ) { |
| 2299 | if( first ) |
| 2300 | first = false; |
| 2301 | else |
| 2302 | description += " or "; |
| 2303 | description += matcher->toString(); |
| 2304 | } |
| 2305 | description += " )"; |
| 2306 | return description; |
| 2307 | } |
| 2308 | |
| 2309 | MatchAnyOf<ArgT>& operator || ( MatcherBase<ArgT> const& other ) { |
| 2310 | m_matchers.push_back( &other ); |