blob: fa949fe2e08383947339f5e20a671e43f3795b2a [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001#ifndef REP_H
2#define REP_H
3
4class Rep
5{
6 int data_;
7public:
8 Rep() : data_(-1) {}
9 explicit Rep(int i) : data_(i) {}
10
11 bool operator==(int i) const {return data_ == i;}
12 bool operator==(const Rep& r) const {return data_ == r.data_;}
13
14 Rep& operator*=(Rep x) {data_ *= x.data_; return *this;}
15 Rep& operator/=(Rep x) {data_ /= x.data_; return *this;}
16};
17
18#endif