| 2950 | return false; |
| 2951 | } |
| 2952 | std::string describe() const override { |
| 2953 | std::string description; |
| 2954 | description.reserve( 4 + m_matchers.size()*32 ); |
| 2955 | description += "( "; |
| 2956 | bool first = true; |
| 2957 | for( auto matcher : m_matchers ) { |
| 2958 | if( first ) |
| 2959 | first = false; |
| 2960 | else |
| 2961 | description += " or "; |
| 2962 | description += matcher->toString(); |
| 2963 | } |
| 2964 | description += " )"; |
| 2965 | return description; |
| 2966 | } |
| 2967 | |
| 2968 | MatchAnyOf<ArgT>& operator || ( MatcherBase<ArgT> const& other ) { |
| 2969 | m_matchers.push_back( &other ); |