Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / dist / libcxx / test / utilities / time / rep.h
blob2ec3514ab567a20af884e2bdef10bb5d93137fbb
1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef REP_H
11 #define REP_H
13 class Rep
15 int data_;
16 public:
17 _LIBCPP_CONSTEXPR Rep() : data_(-1) {}
18 explicit _LIBCPP_CONSTEXPR Rep(int i) : data_(i) {}
20 bool _LIBCPP_CONSTEXPR operator==(int i) const {return data_ == i;}
21 bool _LIBCPP_CONSTEXPR operator==(const Rep& r) const {return data_ == r.data_;}
23 Rep& operator*=(Rep x) {data_ *= x.data_; return *this;}
24 Rep& operator/=(Rep x) {data_ /= x.data_; return *this;}
27 #endif // REP_H