70 template <
typename MatcheeContainerType>
71 bool MatchAndExplain(
const MatcheeContainerType& c,
72 MatchResultListener* listener)
const {
76 *listener <<
"whose size is " << c.size();
81 bool MatchAndExplain(
const char* s, MatchResultListener* listener)
const {
82 return MatchAndExplain(std::string(s), listener);
86 void DescribeTo(std::ostream* os)
const { *os <<
"is empty"; }
88 void DescribeNegationTo(std::ostream* os)
const { *os <<
"isn't empty"; }