blob: a83ef9946322b5a92f798878fe375be30a2a3b11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef BANDIT_BEEMPTY_H
#define BANDIT_BEEMPTY_H
#include "Matcher.h"
namespace bandit { namespace Matchers {
class BeEmpty : public Matcher
{
private:
// BeEmpty & operator=(const BeEmpty &);
public:
explicit BeEmpty() : Matcher() {}
template<typename U>
bool matches(const U& container) const
{
return container.empty();
}
protected:
std::string failure_message_end() const
{
return std::string("be empty");
}
};
static const BeEmpty be_empty = BeEmpty();
}}
#endif // BANDIT_BEEMPTY_H
|