1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
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;}