| 2917 | return true; |
| 2918 | } |
| 2919 | std::string describe() const override { |
| 2920 | std::string description; |
| 2921 | description.reserve( 4 + m_matchers.size()*32 ); |
| 2922 | description += "( "; |
| 2923 | bool first = true; |
| 2924 | for( auto matcher : m_matchers ) { |
| 2925 | if( first ) |
| 2926 | first = false; |
| 2927 | else |
| 2928 | description += " and "; |
| 2929 | description += matcher->toString(); |
| 2930 | } |
| 2931 | description += " )"; |
| 2932 | return description; |
| 2933 | } |
| 2934 | |
| 2935 | MatchAllOf<ArgT>& operator && ( MatcherBase<ArgT> const& other ) { |
| 2936 | m_matchers.push_back( &other ); |