| 2970 | return false; |
| 2971 | } |
| 2972 | std::string describe() const override { |
| 2973 | std::string description; |
| 2974 | description.reserve( 4 + m_matchers.size()*32 ); |
| 2975 | description += "( "; |
| 2976 | bool first = true; |
| 2977 | for( auto matcher : m_matchers ) { |
| 2978 | if( first ) |
| 2979 | first = false; |
| 2980 | else |
| 2981 | description += " or "; |
| 2982 | description += matcher->toString(); |
| 2983 | } |
| 2984 | description += " )"; |
| 2985 | return description; |
| 2986 | } |
| 2987 | |
| 2988 | MatchAnyOf<ArgT>& operator || ( MatcherBase<ArgT> const& other ) { |
| 2989 | m_matchers.push_back( &other ); |