1 #ifndef REP_H 2 #define REP_H 3 4 class Rep 5 { 6 int data_; 7 public: Rep()8 _LIBCPP_CONSTEXPR Rep() : data_(-1) {} Rep(int i)9 explicit _LIBCPP_CONSTEXPR Rep(int i) : data_(i) {} 10 11 bool _LIBCPP_CONSTEXPR operator==(int i) const {return data_ == i;} 12 bool _LIBCPP_CONSTEXPR 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 // REP_H 19