| 3274 | return false; |
| 3275 | } |
| 3276 | std::string describe() const override { |
| 3277 | std::string description; |
| 3278 | description.reserve( 4 + m_matchers.size()*32 ); |
| 3279 | description += "( "; |
| 3280 | bool first = true; |
| 3281 | for( auto matcher : m_matchers ) { |
| 3282 | if( first ) |
| 3283 | first = false; |
| 3284 | else |
| 3285 | description += " or "; |
| 3286 | description += matcher->toString(); |
| 3287 | } |
| 3288 | description += " )"; |
| 3289 | return description; |
| 3290 | } |
| 3291 | |
| 3292 | MatchAnyOf<ArgT>& operator || ( MatcherBase<ArgT> const& other ) { |
| 3293 | m_matchers.push_back( &other ); |