tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / libc++ / dist / libcxx / test / containers / DefaultOnly.h
blobbdcf46d19ff2dd80c5fbbb42c02ecc4527e8792c
1 #ifndef DEFAULTONLY_H
2 #define DEFAULTONLY_H
4 #include <cassert>
6 class DefaultOnly
8 int data_;
10 DefaultOnly(const DefaultOnly&);
11 DefaultOnly& operator=(const DefaultOnly&);
12 public:
13 static int count;
15 DefaultOnly() : data_(-1) {++count;}
16 ~DefaultOnly() {data_ = 0; --count;}
18 friend bool operator==(const DefaultOnly& x, const DefaultOnly& y)
19 {return x.data_ == y.data_;}
20 friend bool operator< (const DefaultOnly& x, const DefaultOnly& y)
21 {return x.data_ < y.data_;}
24 int DefaultOnly::count = 0;
26 #endif // DEFAULTONLY_H